debugger icon indicating copy to clipboard operation
debugger copied to clipboard

[Accessibility] Editor Tabs and Source Tabs should be accessible

Open yzen opened this issue 9 years ago • 24 comments

There are several improvements that can be done for the source tabs to make them awesome for accessibility:

  • [ ] Most Importantly both tab widgets (source and editor tabs) should be the same shared component component that would be styled/configured differently for a particular location.
  • [ ] Reachable by keyboard: tabs should be accessible with the keyboard, right now there's not way to focus on the tab (if there is, it is not visible)
  • [ ] Tabs should be navigatable via keyboard -- there's a blueprint for adding this functionality here; https://github.com/devtools-html/debugger.html/pull/5806
  • [ ] Styling for keyboard focus for tabs
  • [ ] Close tab and add new (+) should be real buttons (or with role button), alternative text and be keyboard accessible: tabbable, activatable and have focus styling
  • [x] source-tabs should semantically be tabs. Marco has a good article about this.

Editor Tabs

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

Source Tabs

screen shot 2018-04-27 at 10 33 09

yzen avatar Sep 18 '17 17:09 yzen

/claim

I'd like to work on this.

About the "left/right should change the current tab", that means implementing tabs as a menu role with ARIA and a lot of JS, which may not be compatible with having buttons for the close action inside or alongside each menuitem. So maybe just having a

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Feb 03 '19 12:02 claim

I'm not sure it necessarily requires using a menu role, @fvsch. For example, the "outline" tabs use react-aria-components, which implement the WAI-ARIA Authoring Practice's Tabs, which uses the tab/tabpanel roles.

We may be better being consistent and staying with the authoring practice's tabs, which use arrows to move left and right. There's also already a react component in the project which is capable of meeting that.

Having said that, I completely failed to finish this issue out and implement tabs for the editor tabs 😿 , because they're implemented in a (very reasonable) way that unfortunately conflicted with how the react-aria-component tabs work, and would require some refactoring.

So please take a shot at coming up with a solution!

ahuth avatar Feb 07 '19 17:02 ahuth

Firefox Developer Tools (including Debugger tool) development is now entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger

Please reopen this report in Bugzilla if it's still valid.

Honza

janodvarko avatar Feb 26 '21 14:02 janodvarko