bug(Datepicker): mat-datepicker-toggle does not announce expanded/collapsed state for screen readers #30406
Labels
Accessibility
This issue is related to accessibility (a11y)
area: material/datepicker
P2
The issue is important to a large percentage of users, with a workaround
Is this a regression?
The previous version in which this bug was not present was
No response
Description
mat-datepicker-toggle
button usesaria-haspopup
but does not inform screen reader users whether the popup is expanded or not.Reproduction
Example link: https://material.angular.io/components/datepicker/examples
Steps to reproduce:
Expected Behavior
The button should have
aria-expanded
attribute (which should always be paired if usedaria-haspopup
).Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: