debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Accessibility] Source Tree should have meaningful semantics.

Open yzen opened this issue 9 years ago • 5 comments

Source list tree should have tree-like semantics in order to be meaningful for screen reader users. Each row/node in the tree should be semantically a tree item with a correct depth level set.

  • [ ] Expanded/collapsed state of the tree item should also be implemented using ARIA
  • [ ] Icons that represent file/folder/domain should have a text alternative. They seem to carry some semantically relevant information (whether the item is a folder or a file) so just hiding the icon from screen reader is not desirable.

Details about how to use ARIA to set tree semantics can be found here. Some general information on how to make tree-like widgets accessible can be found here.

IMPORTANT: it looks like a tree component is used to render the tree so then the component (in case it's shared) should be made accessible. This will help in places where it is re-used elsewhere. A shared tree component was already made accessible in DevTools module in mozilla-central so in case it is the same thing, we should migrate accessibility features from m-c here.

Screenshot

Screen Shot 2017-09-18 at 8.09.39 PM.png

yzen avatar Sep 18 '17 14:09 yzen

The tree comes from here. You can see a bunch of examples by running npm storybook or npm test.

jasonLaster avatar Sep 18 '17 23:09 jasonLaster

Looks like the tree component mentioned above is up to date enough and implements many accessibility improvements from mozilla-central's devtools. If local tree component could be updated to the one in devtools-core it would pretty much resolve this bug. One serious blocked for just doing that, however, is an issue I just filed https://github.com/devtools-html/devtools-core/issues/695. Ideally it should be handled first before syncing the component.

yzen avatar Sep 19 '17 02:09 yzen

Great, I or @nchevobbe will do the update soon.

jasonLaster avatar Sep 19 '17 12:09 jasonLaster

Doing Bug Triage. Can this issue be closed? @jasonLaster

HeidiEllis avatar Feb 21 '18 19:02 HeidiEllis

Yes, I think we have the correct attributes now

nchevobbe avatar Feb 22 '18 07:02 nchevobbe