Watch
0
0
Fork
You've already forked hyperhive
0

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:
iris 2026-11-19 18:49:10 +01:00 • committed by mara
commit c9e6cd2e61

View file

@ -262,10 +262,36 @@
all: unset;
cursor: pointer;
line-height: 1;
padding: 0.1em 0.3em;
padding: 0.25em 0.45em;
border-radius: 0.2em;
color: var(--muted);
}
/* `all: unset` drops the browser's focus ring, and so does the tab link's
own reset, so both draw one. */
.shell-tab-close:focus-visible,
.shell-tab-link:focus-visible {
outline: 2px solid var(--purple);
outline-offset: 2px;
}
/* A skip link, drawn only while it has the keyboard focus. */
.shell-skip-link {
position: absolute;
left: 0.5em;
top: -4em;
z-index: 100;
padding: 0.5em 1em;
border-radius: 0.3em;
background: var(--bg-elev);
color: var(--fg);
border: 1px solid var(--purple);
}
.shell-skip-link:focus {
top: 0.5em;
}
/* The page container takes the focus when a page opens, and is not a control. */
.shell-body:focus {
outline: none;
}
.shell-tab-close:hover {
color: var(--fg);
background: color-mix(in srgb, var(--fg) 10%, transparent);