-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
fix(VTimePicker): add aria-disabled attribute #22544
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
base: master
Are you sure you want to change the base?
Conversation
bdb0d3d to
2092e10
Compare
|
I don't observe any meaningful difference. Clock is not focusable, so screen reader ignores it. Accessibility tree does not seem to improve either. All we really get is a fancy selector for tests. |
You have a point, but it is cumbersome to test without it |
|
Correct title: "chore(VTimePicker): mark disabled clock digits for testing". Would it make any difference if we set |
I am using vitest browser mode and expect.element().toBeDisabled() |
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/disabled#overview |
|
The proper fix definately is to convert these divs to buttons |
|
When we enable focus within the clock, it should handle up/down arrows to change value by 1 to access minutes and seconds that do not have visible buttons. I would also consider special handling for Tab
|
fixes #21885
Description
Add
aria-disabledto disabled clock itemMarkup: