vitepress
vitepress copied to clipboard
menu (navigation drawer) should not be traversable with keyboard when not shown
Describe the bug
When the menu is not shown (narrow screens), it shouldn't be traversable via keyboard tab.
Once the menu is shown, should have a focus trap: the tab key will traverse again the content (after a few tabs, the menu entries are traversed). The menu should trap the focus, and select the current entry once activated.
Reproduction
Open VitePress docs, resize the browser window and use the keyboard tab key.
Expected behavior
Menu shouldn't be traversable.
System Info
NA
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.