[Accessibility] Editor Tabs and Source Tabs should be accessible
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

Source Tabs
/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
I think we may want to handle the sources/outline tab implementation separately too, especially since we discussed moving away from tabs and showing the outline below the sources in the left sidebar (as a collapsible pane) at All Hands.
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!
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!
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