button
The element for every action: bar items, list rows, tabs, alert actions and the few styled buttons, with its attributes and counts.

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.

Two buttons: "Cancel" as a bar item, and the one filled button in content, "Create an identity".
A plain text button ("Reply") and the round filled Send button of the composer, dimmed because the draft is empty.

What iOS draws

Where the button is written

What it becomes

In a route's header

A navigation bar item. Before the heading it leads, after it it trails (bars)

Directly in a section

A list cell. Its first text is the title, a leading symbol and a trailing chevron or checkmark are placed by the cell. With no chevron the title is drawn in the tint, as an action row

In the root row role="tablist"

A tab of the tab bar (main)

In a dialog

An action of the system alert (dialog)

Anywhere else

UIButton. With no buttonStyle it is plain tinted text

Attributes in this app

Attribute

Uses

Meaning

press

112

The action. The five without one are alert Cancel buttons, which only close

testId

106

Test handle

disabled

31

The condition that dims it: empty draft, request in flight, missing identity

aria-label

16

The name of a symbol only button ("Share", "Directory", "Send"), or a fuller name ("Use bob")

buttonStyle

8

filled 3, bordered 3, bordered-prominent 2

commandfor, command="close"

10

Alert actions close their dialog

role="radio", aria-checked

6

Choice rows: provider, model, server

role="tab", aria-controls, aria-selected

4

The four tabs

id="back"

6

Marks a sheet's Cancel or Close as the control a swipe down presses

destructive

4

Red: remove identity (row and two alert actions), cancel a run

delete

2

Swipe to delete on the row

aria-expanded

2

Disclosure rows: AgentToolRow, AgentContextRow

retainFocus

2

Send buttons keep the keyboard up

layout (display, flex-direction, gap, min-height=44, width, text-align)

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

filled

Send in DiscussComposer; Send in the Agents composer; "Create an identity" on the Compose sheet

discuss.contract L183, agents.contract L626-L633, discuss.contract L274

bordered

"Create" in the composer's no identity prompt; "Open Me" under EmptyState; "Connect" on Server

discuss.contract L171, activity.contract L66, me.contract L370

bordered-prominent

The confirming bar button of the two identity sheets: "Create", "Import"

me.contract L254, me.contract L303

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

button

Document and site home (DocScreen)

4

Directory sheet (DirectoryScreen)

2

Open site sheet (OpenSiteScreen)

2

Thread (DiscussThreadScreen)

1

Compose comment sheet (DiscussComposeScreen)

3

Activity inbox (ActivityScreen)

7

Email notification settings (ActivityEmailScreen)

5

Agents list (AgentsScreen)

6

Agent detail (AgentDetailScreen)

3

Agent session (AgentSessionScreen)

6

New agent sheet (AgentCreateScreen)

5

Providers sheet (AgentProvidersScreen)

2

Agent server sheet (AgentServerScreen)

2

Me (MeScreen)

6

Identity detail (MeIdentityScreen)

15

Create identity sheet (MeCreateScreen)

3

Import identity sheet (MeImportScreen)

2

Server (MeServerScreen)

5

Edit profile (ProfileScreen)

3

Vault (VaultScreen)

13

Connect vault sheet (VaultConnectScreen)

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 App component (app shell and the test fixture route)

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).

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0
Linked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkLinked document ยท Outgoing linkbuttonbutton
Citations 0Children & links 61

Loading child documentsโ€ฆ

Connections show where other documents or comments link to this document.

Related documents

Loading connectionsโ€ฆ