- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aria-* attributes do not match their roles #1090
Comments
Hello @ventralnet, you should use |
@sahilrajthapa Thanks, I didn't know that prop existed! However this ticket is because day cells in the calendar are assigned the role 'role=gridcell' and also have the aria attribute 'aria-pressed' defined. Elements of role gridcell do not suppor the aria-pressed attribute. One way to fix this and help scree readers would be to have a child of the gridcells with role=button with the aria-pressed attribute. Another may be to changed aria-pressed to be aria-selected which I think is more standard |
@ventralnet Thanks for the clarification! I'll create a PR to fix this. |
Hello, I am currently performing accessibility testing for my application. The first step we are doing is running chrome dev tools light house to test our app generally.
It looks like days in the date picker are assigned the role of gridcell. They also have an aria-* rolled defined which I assume is storing the 'pressed' state (aria-pressed="true|false")
This flags as an issue because the mismatch is not to spec/is not a attribute valid for gridcell roles
vue-datepicker@11.0.1
The text was updated successfully, but these errors were encountered: