Page MenuHomePhabricator

[Keyboard UX] Ensure users can tab from the menu button to the menu content, for the main menu and collapsed TOC
Closed, DuplicatePublic5 Estimated Story Points

Description

Background

Follow up to T262872

Dropdown menu content should be adjacent to the menu button so that the content is directly accessible for keyboard and screenreader users. Currently both the main menu and collapsed TOC have their menu content separated, and users need to tab through many elements to reach a menu they just opened. This task is to implement a temporary JS work around that improves this experience for keyboard users. This solution doesn't address the issue for screenreader users.

Developer notes

We will use JS to attach focus/blur event handlers to move the focused element around, simulating a situation where the menu content is adjacent to the button. Specifically tabbing away from the button will jump the focus to the first focusable element in the corresponding menu content, and tabbing out of the menu content will resume the focus directly after the button.
This should also work for tabbing backwards.

AC

  • Users can easily tab into and out of the main menu and collapsed TOC content.

Event Timeline

ovasileva triaged this task as Medium priority.Jul 25 2022, 9:40 AM
bwang renamed this task from Ensure users can tab from the menu button to the menu content, for the main menu and collapsed TOC to [Keyboard UX] Ensure users can tab from the menu button to the menu content, for the main menu and collapsed TOC.Sep 16 2022, 5:45 PM
ovasileva raised the priority of this task from Medium to High.Sep 20 2022, 5:17 PM
LGoto set the point value for this task to 5.Sep 20 2022, 5:28 PM
bwang lowered the priority of this task from High to Medium.Sep 28 2022, 7:55 PM

Lowering priority of task to Medium given T317899 will be worked on soon in the next quarter

bwang lowered the priority of this task from Medium to Low.Oct 19 2022, 6:09 PM