Accessibility
What the components do for people using a keyboard, a screen reader, a touch screen or reduced motion, and where they still fall short.
Roles and labels
Components use the ARIA pattern that fits what they do. For example:
| Pattern | Roles and states | For example |
|---|---|---|
| Menus | A menu of menuitem rows. The button that opens one reports aria-expanded | Model picker |
| Lists you pick from | A listbox of option rows. The search box that drives one is a combobox | Command palette |
| A single choice | A radiogroup | Decision prompt |
| Tabs | tablist, tab and aria-selected | Terminal stream, Segmented control |
| File trees | A tree of treeitem rows | File explorer |
| Popovers | A labelled dialog, like the calendar | Date picker, Citation hover card |
| Toggle and icon buttons | Toggles report their state with aria-pressed. Icon-only buttons have a label | Line chart, Answer action bar |
Live updates
Agent work changes while you watch. The parts that change are aria-live="polite" regions, so the change is read out: Status pill, the thread above Composer, the message line of Context meter, the thread in Comments and the month in Date picker.
Decorative motion, like status glyphs and the wires of a canvas, is aria-hidden, so screen readers hear the words, not the animation.
Keyboard
| Keys | What they do | Where |
|---|---|---|
| Esc | Closes menus and popovers | Composer, Date picker |
| Esc | Also returns focus to the button or field that opened them | Date picker, Model picker |
| EnterSpace↓ | Open a menu with the focus on its picked or first item; ↑ opens it on its last | Profile menu, Model picker |
| Tab | Closes a menu and moves on | Profile menu, Model picker |
| ↑↓←→ | Move through lists, menus and toolbars, wrapping at the ends | Command palette, Answer action bar |
| HomeEnd | Go to the first and last item of a menu | Profile menu, Model picker |
| ←→↑↓ | In the date pickers, move a day or a week | Date picker |
| HomeEnd | Go to the start and end of the week | Date picker |
| Page UpPage Down | Move a month, or a year with Shift | Date picker |
| 1to9 | Pick an option | Decision prompt |
Focus from the keyboard shows as one 2px ring in --dm-focus, a grey that reaches 3:1 on the page: an outline 2px outside the control, or a 2px ring drawn with box-shadow where an outline would be cut off. It uses :focus-visible, so a click or a tap on a button doesn't show it. Fields take no ring: their dimmed grey edge steps up to that same grey while they have the focus, and goes back once you leave them.
Most components work fully with a keyboard. A few, like File explorer, are still getting their keyboard support.
Reduced motion
When the device asks for less motion (prefers-reduced-motion: reduce), the components cut it in two places:
In the CSS
The shared CSS cuts every CSS animation and transition inside the components to almost nothing.
In the scripts
The HTML version reads
REDUCE, which the core keeps in step with the same setting as it changes, so turning it on or off takes effect without a reload, and turning it on finishes what a script is animating. React components that animate from script use theuseReducedMotion()hook fromlib/hooks.ts, which follows the setting live too.
Count-ups finish at once, rows move without gliding, and the content still changes.
Touch screens
Tap areas
On a touch screen (
pointer: coarse) every button, link, tab, switch and checkbox gets a tap area of at least 40px square, centred on it: a clear::before(or::after, where the component already draws with its::before) from the shared CSS, so how it looks doesn't change. A list or strip that scrolls can cut one off at its own edges.Close neighbours
Where two controls sit closer than that, a script in the core shrinks both tap areas evenly towards the gap between them, so a tap lands on the control nearest to it. It is
fitHitsincore.js, andlib/hits.tsin React, which every component imports.Hover
Hover styles only apply with a mouse (
@media (hover:hover) and (pointer:fine)), so a tap never leaves one stuck on a phone.
Contrast
Text and marks
The accent has separate roles for fills, text and marks. Text in the accent aims for 4.5:1 and marks for 3:1, on the surface and on the grey chips and tinted rows they sit on. See Theming.
A light accent
Blueprint's lime is too light for text on white, so in light mode accent text uses the ink colour and marks a darker lime.
Edges
An off switch and an empty box are drawn in a grey that holds 3:1 against the surface. An accent fill keeps a thin edge in the mark colour, so a light accent still has an outline.
For each component
Every component's page lists what it does under About, then Accessibility. Its Markdown copy has the same list. These notes describe what the code does. Check your product with your own content and assistive technology too.
This page as Markdown: accessibility.md