Skip to content

DocsReferenceAccessibility

PT

Reference

Accessibility

State in ARIA, visible focus, keyboard and reduced motion. What each piece guarantees and what's up to you.

What the system guarantees

  • State in ARIA attributes, also read by the CSS: aria-checked, aria-selected, aria-expanded, aria-current, aria-sort.
  • Visible focus on every control, with a 2px outline in the text color.
  • Text measured at 4.5:1 on the panel, in both themes. See the live numbers in Tokens.
  • Reduced motion zeroes the durations and leaves each piece in its final state.
  • Charts drawn in svg get role="img" and an aria-label with the summary.

Keyboard per component

ComponentKeys
SelectEnter, Space and arrows open; arrows, Home, End and letters navigate; Enter picks; Esc closes.
SliderArrows move one step; Home and End go to the ends.
SegmentedArrows change the option and wrap around.
PeriodTab to the arrows, Enter steps.
CalendarTab through the days, Enter picks. No arrow navigation in the grid.
BarsTab per column shows the value.
ChartsThe period picker has keyboard support. The per-item highlight is pointer-driven.

What's up to you

  • Icon-only buttons need an aria-label.
  • Search needs an aria-label on the input: a placeholder is not a name.
  • Segmented and the model radiogroup need an aria-label on the host.
  • data-tip is visual: repeat the text in aria-label.
  • On mobile, a standalone control deserves 44px of height: use u-btn--lg.

Type to search. Arrows pick, Enter opens.