Accessibility
Keyboard, focus and ARIA come from UI SDK; contrast, targets and motion from the theme. What's left for you is naming things and structuring the page.
What the components do
- Keyboard and focus follow the ARIA Authoring Practices: arrow keys in menus, lists, tabs and radio groups, focus traps and restore in dialogs, one tab stop for toolbars and listboxes.
- Async actions stay focusable while pending, announce after a second, and ignore a second press (Button, ConfirmDialog, Form).
- Text reaches 4.5:1 and control edges, focus rings and state fills 3:1, in every palette, theme and mode. CI checks it with axe and pixel sampling in Chrome.
- On a coarse pointer, controls reach a 44px hit area.
- Reduced motion collapses transitions; spinners and pulses turn into a fade. Status never rests on colour alone: stage markers, chart legends and dashed targets carry it too.
What you do
- Name every control: a
FieldLabel, aDialogTitle, oraria-labelwhen there's no visible text. People with screen readers and agents both find controls by name. - Render a SkipLink first and give the page one
<main>(PageLayout as="main"). - Give titles a heading level that fits your outline:
CardTitle headingLevel,PageHeader headingLevel. - Pass
liveto an Alert that appears after the page loads. - Keep a custom brand colour at 4.5:1 on the background.
Testing
The registry's own tests run axe on every component, check keyboard paths, focus and right to left, and run the agent test. This site's smoke test loads pages in Chrome and requires zero axe violations and no horizontal scroll at 375px.