Accessible Navigation for Nested nav-items #4804
Labels
change request
Issue requests a new feature or improvement
resolved
Issue is resolved, yet unreleased if open
Contribution guidelines
I want to suggest an idea and checked that ...
Description
I propose adding tabindex, aria-hidden, and aria-expanded attributes to the labels on nested nav-items. I would also like to add event listeners to those same labels such that when they are in focus the user can click enter to expand them.
Use Cases
This would make the nav bar easier to use for visually impaired users. As it stands, they aren't tabbable, and just adding tabindex="0" doesn't make it better because they still need to be clicked on to expand. This is why the event listeners are also necessary.
Screenshots / Mockups
Here's a link to my suggested solution: https://github.com/mnazzaro/mkdocs-material
It still has some problems, though, as described in my comment in discussion 3156: #3156 (reply in thread)
No response
The text was updated successfully, but these errors were encountered: