Sidebar
v0.64.0, changelogBetaA console's main navigation: grouped links with counts, tags and nested pages, a switcher header and an account footer, collapsing to an icon rail (⌘B / Ctrl+B) and a sheet on phones.
Roles
What a screen reader is told each part is, measured in the examples on the Overview tab.
buttonheadinglinklistlistitemnavigationseparator
Keyboard
| Keys | Action |
|---|---|
| ⌘+B / Ctrl+B | Collapse the sidebar to its rail, or open it; on a phone, open or close the sheet. Not while typing |
| Tab | Move through the switcher, the links, the account and the edge button, top to bottom |
| Enter | Follow the link; on the switcher or the account, open its menu; on the edge button, collapse or expand the sidebar |
| Esc | On a phone, close the sheet and return focus to the trigger |
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
- Secondary textHints, meta, captionsWCAG 1.4.3 Contrast (Minimum)Needs 4.5:1Light 6.7:1Dark 7.0: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 4.0:1Dark 4.6:1