button is anything a person presses to make something happen. Seed Exact writes it 117 times, and it shows up in five different shapes depending on where it sits: a navigation bar item, a row of a grouped list, a tab, an action of an alert, or a free standing button in content. The app almost never styles one. Where it sits decides how iOS draws it.
What iOS draws
Where the button is written | What it becomes |
|---|---|
In a route's | A navigation bar item. Before the heading it leads, after it it trails (bars) |
Directly in a | A list cell. Its first |
In the root | A tab of the tab bar (main) |
In a | An action of the system alert (dialog) |
Anywhere else |
|
Attributes in this app
Attribute | Uses | Meaning |
|---|---|---|
| 112 | The action. The five without one are alert Cancel buttons, which only close |
| 106 | Test handle |
| 31 | The condition that dims it: empty draft, request in flight, missing identity |
| 16 | The name of a symbol only button ("Share", "Directory", "Send"), or a fuller name ("Use bob") |
| 8 |
|
| 10 | Alert actions close their dialog |
| 6 | Choice rows: provider, model, server |
| 4 | The four tabs |
| 6 | Marks a sheet's Cancel or Close as the control a swipe down presses |
| 4 | Red: remove identity (row and two alert actions), cancel a run |
| 2 | Swipe to delete on the row |
| 2 | Disclosure rows: AgentToolRow, AgentContextRow |
| 2 | Send buttons keep the keyboard up |
layout ( | 4 to 6 each | The custom rows inside agent cards, which lay out their own content and keep a 44 point target |
The eight styled buttons
Style | Where | Source |
|---|---|---|
| Send in DiscussComposer; Send in the Agents composer; "Create an identity" on the Compose sheet |
|
| "Create" in the composer's no identity prompt; "Open Me" under EmptyState; "Connect" on Server |
|
| The confirming bar button of the two identity sheets: "Create", "Import" |
The other 109 buttons have no style. Two pill shaped actions that look like filled buttons, "Add a comment" and the document button block, are links, because they navigate.
Used by
Where it is written |
|
|---|---|
Document and site home ( | 4 |
Directory sheet ( | 2 |
Open site sheet ( | 2 |
Thread ( | 1 |
Compose comment sheet ( | 3 |
Activity inbox ( | 7 |
Email notification settings ( | 5 |
Agents list ( | 6 |
Agent detail ( | 3 |
Agent session ( | 6 |
New agent sheet ( | 5 |
Providers sheet ( | 2 |
Agent server sheet ( | 2 |
Me ( | 6 |
Identity detail ( | 15 |
Create identity sheet ( | 3 |
Import identity sheet ( | 2 |
Server ( | 5 |
Edit profile ( | 3 |
Vault ( | 13 |
Connect vault sheet ( | 3 |
StatusLine (named component) | 1 |
DiscussComposer (named component) | 3 |
AgentError (named component) | 1 |
AgentToolRow (named component) | 3 |
AgentChildRow (named component) | 1 |
AgentContextRow (named component) | 1 |
AgentRunCard (named component) | 3 |
ProfileForm (named component) | 1 |
the root | 5 |
Total | 117 |
Rules for use
Leave the style unsaid unless the button is the one main action of its surface (filled) or must read as a button on a plain ground (bordered). Exact's guidance: "the main action is buttonStyle=\"filled\"".
A symbol only button needs an aria-label.
Disable instead of hiding when the action exists but cannot run yet, and change the title while it runs: "Post" to "Postingโฆ", "Save" to "Savingโฆ", "Connect" to "Checkingโฆ".
Use destructive for what cannot be undone, and ask first with a dialog.
Use a button for an action and a link for a destination. The Agents screens do not follow this: their rows are buttons that call follow("/โฆ"), which behaves the same and looks the same on iOS.
Custom buttons inside cards keep min-height=44.
The decisions behind each kind of action are collected in Buttons and actions.
Inconsistencies to know
Vault colours its two logout titles with color="-exact-system-red" instead of destructive=true (vault.contract L147, L162).
"Save provider" sets its title to the label colour, so it does not look tinted (agents.contract L811).
The confirming bar button is bordered-prominent on the Me sheets and unstyled on the Agents and Discuss sheets.
Why
A plain tinted title is what a native iOS button is, and the brand tint makes every one of them teal with one token (Color and tokens). Keeping filled buttons to three makes the main action obvious where it matters, the composers and the identity prompt (Leave it unsaid).
Related
Parent: Primitive elements
How it is built: Contract views and built-in calls, The Contract language
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime