Closed nikola-zitko closed 10 months ago
A similar false output occurs when optgroup is used: https://github.com/FreedomScientific/VFO-standards-support/issues/243
hi nikola-zitko,
Not sure what is going on, but I hear the same incorrect item announced in both JAWS and NVDA (in Chrome)
I also don't know exactly why, but if you substitute for , .hidden { display: none; } in your code, it seems to clean up the incorrect item announcement - but NVDA will announce x of 4 items, even though only 3 are visible.
Another option is to replace hidden with disabled, as suggested by others - not sure if this is an option.
good luck mark
Hi @menovak, we're actually using both hidden and disabled. Refactoring and removing the hidden attribute would take a lot of dev and QA time since a huge platform is in question. Also announcing the wrong number of items is not ideal in our case.
I'm not sure if it's a JAWS or Chrome issue, but we would be more inclined to wait a fix on their end. We will have to see what to do, probably come up with some sort of a compromise if the issue persists.
Thanks for the help anyway!
hi nikola-zitko,
I totally understand how size can sometimes dictate choices. Generally, if we see the same behavior exhibited in NVDA and JAWS, we are not quick to point fingers at the screen readers so tracking the real cause of this issue down may take some time.
And for what it is worth, it seems to announce better in Firefox, but perhaps that is still not good enough for what you are seeking. I just dumped your code into an codepen and added a select element with the disabled attribute, but personally i like the hidden class better.
https://cdpn.io/menovak/debug/gOWbYab/xJAjOeYngOzk
Please let me know if there is anything else I can assist with, regards mark
hi nikola-zitko,
I had a little time, and did a bit of digging, and seems there is a bug in Chrome related to this - but I struggle to follow all the details.
https://bugs.chromium.org/p/chromium/issues/detail?id=759369
leads to :
https://github.com/whatwg/html/issues/3063
regards, mark
Tested with JAWS 2024 and Chrome/Firefox. works as expected
Summary
NOTE: For the number of hidden options, that many options below from the focused one will JAWS read. e.g. one hidden option, JAWS reads the option below the focused one. Two hidden options, JAWS reads the second one below the focused one.
Expected result
Actual result
Example
Additional Information
JAWS version and build number
Operating System and version
Browser and version: