Segmented control meets WCAG 2.2 level AA when used as described on these pages. It follows the Radio Group pattern of the WAI-ARIA Authoring Practices.
Keyboard
| Key |
Action |
| Tab |
Moves focus to the selected segment. |
| ← → |
Select the previous or next segment. |
What Segmented control gives you
role="radiogroup" with role="radio" and aria-checked on each segment.
- A selected segment that differs in fill, shadow and text colour.
What your team does
- Name the control with
aria-label.
- Use radio buttons in a form that is submitted.
WCAG criteria
| Criterion |
Level |
How |
| 1.4.1 Use of Color |
A |
Fill, shadow and text change together |
| 2.1.1 Keyboard |
A |
Arrow keys select |
| 4.1.2 Name, Role, Value |
A |
aria-checked |