swarm ui: landmarks, a skip link, a page heading, named repeated buttons and a log role on the terminal
The shell now has a main landmark that takes the focus when a page opens, a skip link as the first Tab stop, a labelled nav, aria-current on the active tab, and a hidden h1 with the page's name (no page drew one). The tab close button and tab link get a visible focus ring and a larger target. Repeated edit, remove, delete, fire now, pause, duplicate buttons and the icon-only terminal, expand and close badges get a name that says what they act on (Button gains ariaLabel). A badge can be pressed (aria-pressed), used for the internet modes and the SSH target form, whose fake tablist is now a labelled group. The terminal is a focusable role=log with live announcements off, and a latest badge scrolls back to the newest row once the operator has scrolled up and the terminal has stopped following.
This commit is contained in:
parent
1ca82b3e09
commit
c9e6cd2e61
1 changed files with 218 additions and 17 deletions
|
|
@ -153,6 +153,15 @@ the browser gives up on the stream, a **reconnect** badge opens it again. The
|
|||
terminal's own tab keeps these badges, with the model, beside the agent's name;
|
||||
the turn-state badge says how long the agent has been in that state.
|
||||
|
||||
The terminal is a `role="log"` that takes the keyboard focus, so the arrow keys
|
||||
scroll it, and it doesn't announce new rows, since many can arrive in a second.
|
||||
Once you scroll up it stops following the newest row, and a **latest** badge over
|
||||
its bottom-right corner scrolls back and follows again.
|
||||
|
||||
The page around it has a skip link (**skip to content**, the first Tab stop), a
|
||||
`<main>` landmark that takes the focus when a page opens, and a hidden `<h1>`
|
||||
with the page's name. The active tab in the header carries `aria-current`.
|
||||
|
||||
The connection is a **light** on the agent's icon in the name badge: green when
|
||||
the stream is live, amber while it connects or reconnects, red when it closes.
|
||||
In the card's preview, which has no name badge, the light stands alone. The
|
||||
|
|
|
|||
Loading…
Reference in a new issue