The sidebar open tabs hover preview is not reachable by keyboard
Categories
(Firefox :: Sidebar, defect, P3)
Tracking
()
| Accessibility Severity | s2 |
People
(Reporter: florian, Unassigned, NeedInfo)
References
Details
(Keywords: access, blocked-ux, Whiteboard: [fidefe-sidebar])
sidebar-opentabs-preview is mouse-only. Nothing in it can be reached with the keyboard or by a screen reader:
- the panel only opens from
mouseoveron the Open Tabs launcher button (SidebarMain.onEntrypointHover->activate()), and there is no keyboard trigger; #sidebar-opentabs-previewinmain-popupset.inc.xhtmlisnoautofocus="true";- every row is
role="button" tabindex="-1"(sidebar-opentabs-preview.mjs) and nothing manages a roving tabindex; - the per-row close button is
visibility: hiddenuntil the row is hovered.
So the tab list, the mute button, the close button and "Show all" are all unreachable without a pointer.
The .preview-row:focus-within rule in sidebar-opentabs-preview.css suggests focus was expected to be able to land on a row, which it cannot today.
This is not a one-line fix. Giving the rows tabindex="0" is not enough: deactivate() hides the panel 100ms after the pointer leaves the launcher button, so a keyboard user tabbing into it would have it close under them. It needs a keyboard entry point and a dismissal model, so it wants UX input.
Separately, role="button" on a row that contains two moz-button children is nested interactive content; fxview-tab-row solves the same problem with a role="listitem" container, a real primary control, and sibling secondary buttons.
sidebar.openTabsPanel.enabled is false by default, so this can be fixed before the Open Tabs panel ships.
Found while fixing bug 2062444. The a11y checks currently report
Node is not focusable via the accessibility API: id: , tagName: div, className: preview-row
but only as a side effect of that test clicking the close button while it is visibility: hidden, which leaves the checks to fall back to the row. Once that test is fixed nothing in CI reports the row any more, so this bug is where the gap is tracked.
Feature implemented in bug 2039601.
Updated•2 months ago
|
Comment 1•2 months ago
|
||
The severity field is not set for this bug.
:sfoster, could you have a look please?
For more information, please visit BugBot documentation.
Comment 2•28 days ago
|
||
Clearing need-info so this shows up in our triage list. I can't speak to how we're thinking about a11y and those preview popups, but presumably we should be consistent. How are the tab strip hover previews handled?
Comment 3•24 days ago
|
||
We'll have to decide:
- Whether we want to support showing the on-hover panel during keyboard navigation. As mentioned, this is not something we currently do with tab previews.
- What triggers the on-hover panel – is it just focus? Should we require additional keyboard input, once focused?
I don't see an established pattern to handle this, so we'll have to decide on one.
Comment 4•15 days ago
|
||
I guess we treat this as a sidebar bug until we hear otherwise. I'm going with the s2 from the accessibility severity rating. It has cross-component implications though. :hjones, has this come up in a reusable component/design system context?
Updated•15 days ago
|
Description
•