A set of toggles, one or many on, joined or spaced, outline or ghost. On is inverted.
Roles
What a screen reader is told each part is, measured in the examples on the Overview tab.
buttongroupradioradiogrouptoolbar
- Follows the WAI-ARIA patterns Toolbar and Radio group.
Keyboard
| Keys | Action |
|---|---|
| Tab | Move into the group |
| Arrow keys | Move between items |
| EnterSpace | Turn the focused item on or off |
Colour contrast
Computed from the shipped theme for the colours this component uses, on page and card backgrounds; the lower of the two is shown. WCAG 2.2 AA.
- TextLabels, values, bodyWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 17.3:1Dark 17.3:1
- Primary fillText on the primary actionWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 19.9:1Dark 19.1:1
- Keyboard focus ringFocus visible, on every control in itWCAG 1.4.11 Non-text ContrastNeeds 3:1Light 17.3:1Dark 17.3:1
- DisabledDisabled controls (the kit still keeps 3:1)WCAG 1.4.3 Contrast (Minimum) · WCAG 1.4.11 Non-text ContrastNeeds Not requiredLight 3.7:1Dark 4.4:1