Accessibility
- The trigger has
aria-haspopup="dialog"andaria-expanded, and is named by the input's<label>(oraria-label/aria-labelledby). - The popover is a
dialogwith a label (Choose date,Choose time, ...). - The calendar is a
gridwith one tab stop. Each day has a full label (Monday, October 12, 2026),aria-selected,aria-current="date"for today andaria-disabledoutsideminandmax. The month title is a polite live region, so the new month is announced. - Time parts are
spinbuttonelements witharia-valuenow,aria-valuemin,aria-valuemaxandaria-valuetext. - Presets are a
listboxofoptionelements. - The range pill is named
Choose date range, Last 7 days: purpose and value together. - Focus returns to the trigger when the popover closes. Escape closes the picker before it closes a surrounding modal dialog.
requiredand invalid state are announced througharia-requiredandaria-invalid.- On touch screens, days are at least 42 px, and tapping the field does not open the on-screen keyboard.
- Animations are off for
prefers-reduced-motion. - All texts are inserted as text, never as HTML.