TimePicker (slots in a popover) and TimeInput (typed), on a 24-hour "HH:mm" value.
Roles
What a screen reader is told each part is, measured in the examples on the Overview tab.
buttontextbox
- Follows the WAI-ARIA pattern Button.
Keyboard
| Keys | Action |
|---|---|
| Enter | Commit the typed time (TimeInput) |
| Tab | Leave the field; the time is read on blur |
| EnterSpace | Open the list of slots (TimePicker) |
| Tab | In the list: one stop, on the picked slot (or the first free one) |
| ↑↓ | Previous or next free slot |
| Page UpPage Down | Six slots back or forward |
| HomeEnd | First or last free slot |
| EnterSpace | Pick the focused slot and close |
| Esc | Close and return focus |
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
- Control edgeThe outline that shows where to type or pressWCAG 1.4.11 Non-text ContrastNeeds 3:1Light 3.4:1Dark 3.8: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