Skip to content

Commit e00e0fb

Browse files
committed
docs(material/datepicker): require confirmation buttons for a11y (#24526)
For the datepicker accessiblity documentation, add instructions to always provide confirmation buttons. This prevents an accessibility issue where selecting a date on the calendar gives no audio feedback of the selected date (#23568). This commit only affects the docs and does not change source code. Addresses #23568 (cherry picked from commit ceae061)
1 parent 06a00dd commit e00e0fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/material/datepicker/datepicker.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,9 @@ The `MatDatepicker` pop-up uses the `role="dialog"` interaction pattern. This di
566566
multiple controls, the most prominent being the calendar itself. This calendar implements the
567567
`role="grid"` interaction pattern.
568568

569+
Always enable [_confirmation action buttons_](#confirmation-action-buttons). This allows assistive
570+
technology users to explicitly confirm their selection before committing a value.
571+
569572
The `MatDatepickerInput` and `MatDatepickerToggle` directives both apply the `aria-haspopup`
570573
attribute to the native input and button elements, respectively.
571574

0 commit comments

Comments
 (0)