polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Screen reader not announcing correct number of items when disabled options are present

Open yourpalsonja opened this issue 5 years ago • 1 comments

[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:

  1. Should the screen reader be reading out the disabled options?
  2. 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:

  1. Disabled radio buttons shouldn't be read
  2. It will count as 3 of 3 options
Screen Shot 2020-12-03 at 8 45 29 AM

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.

yourpalsonja avatar Feb 04 '21 00:02 yourpalsonja

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.

github-actions[bot] avatar Apr 08 '23 03:04 github-actions[bot]