1. Home
  2. Foundations
  3. Accessibility

Kanso UI meets WCAG 2.2 at level AA in every product, theme and window size. Most of that is built into the tokens and the components; this page lists what the system guarantees and what each screen still has to do.

What the system guarantees

NeedHow Kanso UI meets it
Text contrast (1.4.3)Every text token holds at least 4.5:1 on the grounds its note names, in light and dark. kui-color-ink on paper is 16.7:1 and 15.9:1; kui-color-ink-muted is 6.4:1 and 8.9:1.
Non-text contrast (1.4.11)Control boundaries use kui-color-outline. The focus ring, meter fills and status marks hold 3:1 or more.
Use of colour (1.4.1)Status always comes with a word, an icon or a sign. Kinds of thing are shapes. Links are underlined.
Focus visible (2.4.7, 2.4.11)A ring in kui-color-focus-ring on every focusable element, drawn as an outline or a border, never a box-shadow alone, so it survives forced-colours mode.
Keyboard and screen readersReact Aria gives every component its keyboard model, focus management, roles and live announcements, right to left included.
Target size (2.5.8)48px controls on phones, 32px at least on the web (AA asks 24px).
Motion (2.3.3)Animations stop or turn into fades under prefers-reduced-motion. Nothing flashes.
Reflow (1.4.10)Layouts work at 320px wide without scrolling sideways; Table scrolls inside its own container.
Text spacing (1.4.12)Line heights are at least 1.3 for body text, and components do not clip when spacing grows.

What every screen must do

  • Give every control an accessible name: a visible label, or aria-label on an IconButton ("Search", "Notifications").
  • Mark the current destination, and give toggles their checked state; NavigationBar, Tabs, Switch and Checkbox do it for you.
  • Give a Meter or a ProgressIndicator its label, and a value in words where the number alone says too little.
  • Hide status marks and icons from assistive technology (aria-hidden) when a label next to them says the same thing.
  • Announce results that appear without a page change through Snackbar, whose region React Aria announces.
  • Keep the reading order the visual order: the spotlight first, then the summary, then the rest.
  • Write errors that say what happened and how to fix it, next to the field, through the field's error.

Checking a screen

  1. Tab through it with a keyboard: every control is reachable, the order makes sense and the ring is always visible.
  2. Turn on the dark theme and check the same screen again.
  3. Zoom to 200% and narrow the window to 320px.
  4. Turn on reduced motion and check that nothing still slides.
  5. Turn on a right-to-left locale, such as ar-EG, and check that the layout turns over.
  6. Read it with a screen reader (VoiceOver, TalkBack or NVDA) at least once per release.