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

[Accordion Menu] Keyboard Functionality Closes Submenu on Keydown #15508

Open
4 tasks done
agbockus opened this issue Aug 12, 2024 · 0 comments
Open
4 tasks done

[Accordion Menu] Keyboard Functionality Closes Submenu on Keydown #15508

agbockus opened this issue Aug 12, 2024 · 0 comments

Comments

@agbockus
Copy link

Expected Behavior

When accessing an accordion menu and tabbing through the submenus, a user should be able to (while having a submenu parent focused), press 'Space' or 'Enter' and open the submenu - where it should stay open so a user can explore the menu.

Current Behavior

When a submenu parent is focused and I press 'space' or 'enter', the submenu opens and then the entire menu collapses - leaving the focus inside the now-hidden submenu.

Possible Solution

Assuming that the accordion menu JavaScript functionality will need to be tested and fixed to account for submenu link functionality.

Test Case and/or Steps to Reproduce (for bugs)

How to reproduce:

  1. Go to https://get.foundation/sites/docs/accordion-menu.html#basics
  2. Tab into the basic accordion menu example at the bottom of this section, moving focus to 'Item 1'.
  3. With 'Item 1' focused, press 'Space' or 'Enter'.
  4. Tab into the submenu - focusing on 'Item 1A'.
  5. With 'Item 1A' focused, press 'Space' or 'Enter' - this is where the submenu expands and entire menu then proceeds to collapse.

Context

This breaks expected keyboard functionality and may interfere with accessibility.

Your Environment

  • Foundation version(s) used: 6.8.1
  • Browser(s) name and version(s): Chrome 127.0.6533.100
  • Device, Operating System and version: MacBook Pro, macOS Sonoma, 14.5 (23F79)
  • Link to your project: N/A - Foundation's Website

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • This is a bug report or a feature request.
  • There are no other issues similar to this one.
  • The issue title and template are correctly filled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant