fix(VTimePicker): add aria-disabled attribute#22544
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
|
@J-Sek The changes you are proposing should probably go to dev. Will create a separate PR for it targeting dev. There's also a separate issue - #10722 |
fixes #21885
Description
Add
aria-disabledto disabled clock itemMarkup: