Navigation block: the first navigation link inside the Overlay menu is focused, creating confusion on touch devices #43947
Labels
[Block] Navigation
Affects the Navigation Block
Needs Accessibility Feedback
Need input from accessibility
[Type] Enhancement
A suggestion for improvement.
Description
The first navigation link is focused when the user clicks on the hamburger icon to open the overlay menu. So on touch devices, the first link is always highlighted. I've browsed multiple recent websites with great accessibility, but I don't see this behavior on any of them. It can create confusion as it can look like a current menu.
On the screenshot below, I'm currently on the blog page, but when I open the overlay menu, the Intro link is highlighted.
Is it done on purpose for accessibility reasons? Or is it possible to turn off the focus by using the disableFocus setting of the Micromodal.
https://micromodal.vercel.app/#configuration
disableFocus boolean: Disable auto focus on first focusable element. Default is false
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: