Skip to content

Commit 5458587

Browse files
committed
docs(material/datepicker): require confirmation buttons for a11y
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
1 parent cfd8908 commit 5458587

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/datepicker/datepicker.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,10 @@ 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+
The `matDatepickerCancel` and `matDatepickerApply` provide both visual and audio confirmation of the
570+
selected date when closing the pop-up. Always enable the confirmation action buttons (see
571+
[_Confirmation action buttons_](#confirmation-action-buttons)).
572+
569573
The `MatDatepickerInput` and `MatDatepickerToggle` directives both apply the `aria-haspopup`
570574
attribute to the native input and button elements, respectively.
571575

0 commit comments

Comments
 (0)