Screen reader not announcing correct number of items when disabled options are present
[Originally opened by @jaxee in the web repo]
Screen reader functionality when there are disabled options in a list is broken, or at least unclear.
It tells the merchants that there are 5 options in the list and then only reads the 3 non-disabled options. Check out the Export modal on the Draft Orders List page for an example of the behaviour.
Questions:
- Should the screen reader be reading out the disabled options?
- Should the screen reader's count of the options not include the disabled options (5 options with 2 disabled would read out 3 as the number of options)
Some research by @justinewin
I think the best way to test it was coding it in vanilla html and see how it behaves. With that said, here's the solution:
- Disabled radio buttons shouldn't be read
- It will count as 3 of 3 options
However, it's unclear if this is actually the best path forward, or whether this issue should even be fixed–perhaps it's a bug in the screenreader technology.
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. → If there's no activity within a week, then a bot will automatically close this. Thanks for helping to improve Shopify's design system and dev experience.