- Docs
- Guides
- Accessibility
Accessibility
WCAG 2.2 AA is built in. Names, headings and words are yours.
- Target
- WCAG 2.2 AAEvery component
- Checked
- axeOn every pull request
01 — Built in
What every component does.
| Keyboard | Every control works by keyboard, with the WAI-ARIA keys: each component's Accessibility tab lists them. |
|---|---|
| Focus | A 2px ring on every focusable part; dialogs move focus in, keep it there and give it back. |
| Roles and states | Base UI's roles, names and states: aria-expanded, aria-selected, aria-current and the rest. |
| Colour | Status never rests on colour alone: an icon, a word, or a hidden word for screen readers carries it. |
| Motion | Under reduced motion every duration drops to 0: what moves fades or holds still. |
| Forced colours | Borders and indicators are drawn in system colours, so nothing disappears. |
| Disabled | Disabled buttons stay focusable, so the reason can be read. |
02 — Yours to do
What only your page knows.
| Names | An aria-label on every icon-only control; a label on every field; a label on every Table, Tabs list and ScrollArea. |
|---|---|
| Headings | One <h1> a page (PageHeader's title), then levels in order. |
| Language | lang on <html>, and on any passage in another language: <div lang="hi">. |
| Words | Status in words: a Badge says Blocked; an Alert says what to do. |
| Announcements | Alert's announce, only for an alert that appears; a role="status" for a change shown elsewhere. |
<IconButton icon={DownloadIcon} aria-label="Download invoice" />
<Table label="Users" … />
<TabsList aria-label="Priya Sharma">…</TabsList>03 — Tested
How it's checked.
axe, WCAG 2.2 A and AA, in Chromium on every pull request; Firefox and WebKit every night; the keys in each component's table, in a test; forced colours, reduced motion and right to left. Each component's Accessibility tab says what's tested for it.