angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.33k stars 6.73k forks source link

Tree examples accessibility issues #11328

Open tinayuangao opened 6 years ago

tinayuangao commented 6 years ago

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Screen reader users could access the tree with all the information

What is the current behavior?

For nested tree & flat tree example:

For checkbox example:

What are the steps to reproduce?

https://material.angular.io/components/tree/examples

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

6.0

Is there anything else we should know?

mfairchild365 commented 5 years ago

Adding more details:

Using the following screen readers

Revealed the following issues:

Steps to reproduce

  1. Using either of the following screen readers
    • NVDA 2018.4.1 + Firefox 64
    • VoiceOver for IOS (12.1.3) + Safari
  2. Open the tree example
  3. Navigate to the first tree node in the 'tree with dynamic data' example.
    • In NVDA you can press the tab key until you reach the node
    • In VoiceOver for iOS you can swipe right until you reach the node
  4. Observe that NVDA announces "Treeview" and does not announce any other information about the node.
  5. Observe that VoiceOver announces "toggle undefined, button" and does not announce any treview related semantics.

Additionally

nico151999 commented 3 years ago

I was reported the same by a screen reader user. Is there some progress on this issue? I am not familiar with screen readers but this seems to make my application unusable to people using one. Unfortunately, I do not know how to debug such issues. Would be great if there will be a fix or at least a workaround. Any suggestion appreciated. Thank you!

behofer commented 3 years ago

Being a screenreader user myself, I have the same behaviour with NVDA in browse mode (Version 2020.3) and JAWS (Version 2020) together with Firefox and Chrome on Windows. Seems like a general issue with ARIA trees. Advice how to fix this / or for a workaround would be highly appreciated.

sebastianhaberey commented 11 months ago

Same here on macOS Sonoma 14.0 / Google Chrome 118.0.5993.70 (arm64). When focusing on the tree, VoiceOver merely announces "table". Any workaround would be appreciated here, too.

@mfairchild365 thanks for the link to the W3C guide btw, it's quite helpful!