Open YunHanBai opened 1 month ago
A menubar must not contain a comobox or listbox, so there is no JAWS error here, but an error in your example.
If you want listbox and combobox in an area that can be operated with arrow keys, please use role=toolbar instead of menubar
Hello @JAWS-test,
Thank you for the timely response.
I've been reviewing the WAI-ARIA 1.3 documentation you mentioned, it doesn't seem to explicitly state that a combobox
or listbox
cannot be included within a menubar
or menuitem
.
Would you be able to point me towards any specific documentation that clearly outlines that a menubar must not contain controls like combobox
or listbox
? Or could you confirm whether JAWS will definitely not support combobox
or listbox
when they are in a menubar?
I'd really appreciate your help in clarifying this!
Or could you confirm whether JAWS will definitely not support combobox or listbox when they are in a menubar?
No, because I am not from Freedom Scientific
Would you be able to point me towards any specific documentation that clearly outlines that a menubar must not contain controls like combobox or listbox?
Yes. See "Allowed Accessibility Child Roles"
Summary
When navigating a web page with JAWS screen reader,
combobox
elements inside amenubar
are incorrectly labeled as 'mnu' in the Braille Viewer instead of 'cbo'. Additionally, JAWS does not announce the position of items in alistbox
if the listbox is inside amenubar
, despite havingrole="listbox"
on the container androle="option"
on the child elements.combobox
andlistbox
function correctly if they are not inside amenubar
.This issue occurs in Chrome/Edge but not in Firefox.
Steps to reproduce:
combobox
inside the menubar and observe the labeling in the Braille Viewer.Expected result
Similar to
combobox
andlistbox
when placed outside amenubar
, the following behaviors are expected:combobox
should be labeled as 'cbo' in the Braille Viewer.listbox
.Actual result
In Chrome/Edge, the
combobox
is labeled as 'mnu' in the Braille Viewer, and the screen reader does not announce the position and total count of items within thelistbox
. In Firefox, thecombobox
is correctly labeled as 'cbo', and the position and total count are announced.Example
The issue can be replicated using the following CodeSandbox example: https://codesandbox.io/p/sandbox/comboboxa11y-simplified-hyt9h6
Additional Information
JAWS version and build number
JAWS 2024.2403.3 (also tested with JAWS 2022.2211.7)
Operating System and version
Windows 11 Enterprise 23H2
Browser and version:
Chrome: 124.0.6367.119 Edge: 124.0.2478.80 Firefox: 125.0.3