- Issue created by @kentr
On the "mobile" version, when the sidebar is closed, the elements within the sidebar are still focusable and in the tab ring.
Tabbing into the sidebar causes the focus to disappear.
The submenu toggle buttons can be activated, but the submenus are hidden.
After reaching the "Expand sidebar" button, focus moves to the next visible focusable item on the page.
Focus disappears as it moves into the closed sidebar.
When the sidebar is closed, completely hide it with visibility: hidden
or display: none
.
The attached videos demonstrate before / after with visibility: hidden
.
VoiceOver is used in the videos only to make the focus location more apparent. This proposal will also hide the items from screen readers, which may not be desirable. I added Needs accessibility review for confirmation regarding desired screen reader behavior.
The focus will stay on visible elements.
Active
11.0 π₯
navigation.module
It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.
Used to alert the accessibility topic maintainer(s) that an issue significantly affects (or has the potential to affect) the accessibility of Drupal, and their signoff is needed (see the governance policy draft for more information). Useful links: Drupal's accessibility standards, the Drupal Core accessibility gate.