WCAG 2.1 AA • AODA compliant • Updated 2025-10-08
What is this component? Controls to capture dates and times. Prefer native <input type="date|time|datetime-local"> when available; custom calendars must mirror keyboard/ARIA behavior.
| Requirement | WCAG Criteria | Description |
|---|---|---|
| Label/Instructions | 1.3.1, 3.3.2 | Provide clear labels, format hints, and timezone info if applicable. |
| Error identification | 3.3.1, 3.3.3 | Announce invalid formats and provide correction suggestions. |
| Keyboard | 2.1.1 | Native pickers use OS UI; custom calendars must support arrows, Home/End, PgUp/PgDn, Enter. |
| Name, Role, Value | 4.1.2 | Expose active date, focused cell, and selected value. |
| ARIA Role/Attribute | Used On | Purpose & Usage |
|---|---|---|
<input type="date|time|datetime-local"> | Native pickers | Preferred for mobile/OS integration. |
role="grid" + aria-selected/aria-label | Custom calendars | Announce focused date and selection; manage keyboard navigation. |
aria-describedby | Inputs | Describe required format & timezone. |
Local time; format: YYYY-MM-DD hh:mm.
| Test Item | WCAG Criteria | Pass Criteria |
|---|---|---|
| Format announced | 3.3.2 | Screen reader announces hint/format. |
| Keyboard nav (custom) | 2.1.1 | Arrows/Home/End/PgUp/PgDn/Enter work; focus visible. |