-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The Interactivity API for the Navigation block closes the submenu of a parent when focus remains on the parent. Without the Interactivity API, the submenu will remain open while focus is on the parent link.
Step-by-step reproduction instructions
- Have a navigation with a submenu
- Go to the frontend of the site
- Use the keyboard to place focus on the submenu chevron icon
- Press
enter
to open the submenu - Press
shift + tab
to return focus to the parent link
Without the Interactivity API, the submenu remains open when focus is on the parent link.
With the Interactivity API, the submenu closes when focus is on the parent link.
Screenshots, screen recording, code snippet
No response
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
Metadata
Metadata
Assignees
Labels
[Block] NavigationAffects the Navigation BlockAffects the Navigation Block[Feature] Interactivity APIAPI to add frontend interactivity to blocks.API to add frontend interactivity to blocks.[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended