Open zarend opened 2 years ago
For this reason, ARIA APG says that disabled options of a listbox should receive keyboard focus: https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#x6-7-focusability-of-disabled-controls
Unfortunately this is not possible with HTML listboxes, but with ARIA listboxes
The WCAG also sees disabled element as not relevant. Therefore, they are excluded from perceptibility in contrast requirements. So a good recommendation is to use disabled only if the element really has no relevance
https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html:
Text or images of text that are part of an inactive user interface component ... have no contrast requirement.
It is possible to read the third option using the touch cursor.
Summary
Expected result
I would expect there to be some way to read the third option in the listbox. I tried going into browse mode, and there is no way to read the third option. The "Blue" option is only communicated visually and there is no communication to screen reader that the third option is Blue.
Actual result
Nothing happens
Example
https://output.jsbin.com/zijumor
Additional Information
JAWS version and build number
JAWS Job Access with Speech Professional Edition Version 2021.2103.174 ILM
Operating System and version
Windows 10 Enterprise 20H2
Browser and version:
Chrome Version 105.0.5195.127 (Official Build) (64-bit)
Additional Note from reporter
I'm running into this problem when implementing listbox components for the Angular Material component library. https://github.com/angular/components.