Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submenu closes while focus is on parent link #50744

Closed
jeryj opened this issue May 18, 2023 · 2 comments
Closed

Submenu closes while focus is on parent link #50744

jeryj opened this issue May 18, 2023 · 2 comments
Labels
[Block] Navigation Affects the Navigation Block [Feature] Interactivity API API to add frontend interactivity to blocks. [Type] Bug An existing feature does not function as intended

Comments

@jeryj
Copy link
Contributor

jeryj commented May 18, 2023

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

  1. Have a navigation with a submenu
  2. Go to the frontend of the site
  3. Use the keyboard to place focus on the submenu chevron icon
  4. Press enter to open the submenu
  5. 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

@jeryj jeryj added [Block] Navigation Affects the Navigation Block [Feature] Interactivity API API to add frontend interactivity to blocks. labels May 18, 2023
@gziolo gziolo added the [Type] Bug An existing feature does not function as intended label May 19, 2023
@SantosGuillamot
Copy link
Contributor

Thanks a lot for reporting this 🙂 I created this pull request to handle that among other accessibility issues.

@luisherranz
Copy link
Member

Fixed by #50786.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Navigation Affects the Navigation Block [Feature] Interactivity API API to add frontend interactivity to blocks. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants