Mobile version of Navigation should have focus trap

Created on 25 April 2024, 7 months ago
Updated 8 May 2024, 7 months ago

When using the mobile version of the navigation, it is possible to tab through the admin navigation, and into the content of the page. This violates WCAG 2.4.7 focus visible, because the content item that has focus will be obscured by the navigation menu.

In the MR below, I abstract out Olivero's focus trap to a generic Drupal.focusTrap.add() and Drupal.focusTrap.remove() functions. I then utilize this in both Olivero and Navigation.

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
NavigationΒ  β†’

Last updated 1 day ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States mherchel Gainesville, FL, US

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024