Practical WCAG 2.0 AA
The system aims at WCAG 2.0 Level AA for the device console: text people can read, controls they can reach, and status that is not carried by color alone.
Perceivable
Body text uses ink (--foreground) on canvas (--background). Primary buttons use --primary-foreground on --primary. Status text uses the darker success, warning, and danger tokens on their subtle backgrounds, not the pale tints as text.
Do not use color as the only status. Chips include a word. Charts include the series name in the tooltip and a sentence that states the conclusion.
Operable
Every action is a button or a link. Dialogs trap focus and close with Escape. Menus, tabs, and the tree view move with arrow keys. The docs site has a skip link.
Target sizes follow the control heights: 28, 32, and 36px. Do not shrink a table action below the small button.
Understandable
Labels stay visible. Errors say what to fix and sit next to the field. The page does not change a fleet because someone hovered or focused a control. Remote actions have a pending state and a written result.
Robust
Use the roles already built into the components: button, switch, checkbox, dialog, tab, tree, progress, and alert. Do not replace them with styled divs. Name icon-only buttons. Hide decorative icons from assistive technology.
Motion and focus
A visible focus ring uses the primary blue with a 2px offset. People who prefer reduced motion get the same end state without the transition. Focus is not obscured by the sticky docs header; in-product sticky bars must leave focused controls on screen.
Component notes
- Accordion
Headers are buttons with aria-expanded.
- AI Label
The word AI is the accessible name.
- Alert
The region uses role=alert.
- Button
Use a real button element.
- Card
The card is a container. It does not add a role.
- Checkbox
The label is wired with htmlFor.
- Chip
Dismiss buttons have an accessible name that includes the filter.
- Combo Picker
The dropdown is a button with aria-expanded and aria-controls.
- Code Snippet
The copy control is a button named Copy code.
- Contained List
The list has an accessible name.
- Table
Headers are buttons and expose aria-sort.
- Date Picker
The trigger names the current value.
- Dropdown
The trigger is labelled by a visible label.
- Empty State
The title is a heading.
- Graphs
Give the chart a text summary of the conclusion.
- Icons
Decorative icons are aria-hidden.
- File Uploader
The drop zone is a label for a real file input.
- Labels
htmlFor matches the control id.
- Menu
The trigger is a button.
- Modal
Focus is trapped while the dialog is open.
- Navigation
The nav has an accessible name.
- Notification
Each item uses role=status.
- Progress Bar
The bar has an accessible name.
- Radio Button
The group has a name.
- Scroll Bar
The region is keyboard scrollable.
- Search
The input has a visible label.
- Tabs
Tabs follow the tab key to the active tab, then arrow keys between tabs.
- Text Input
Always set a label and id.
- Toast
Toasts are announced in a live region.
- Tooltip
Tooltip content is available on keyboard focus.
- Tree View
The widget is role=tree with role=treeitem.
- Switch
The switch has a label.