bug(datepicker): accessibility - missing role "button" for year, month, day td cells #24187
Closed
1 task
Labels
needs triage
This issue needs to be triaged by the team
Is this a regression?
The previous version in which this bug was not present was
No response
Description
The mat-datepicker component is currently laid out as a table where the cells for year, month, day are td components. These td components are functionally buttons, but are not given the button role.
Thus screen readers and assistive technologies do not announce that the focused element is a button.
Reproduction
Steps to reproduce:
Expected Behavior
The cell which acts as a button should also have the button role.
Actual Behavior
td cells do not have the button role
Environment
The text was updated successfully, but these errors were encountered: