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

[Menu] Fixed Menu item not toggling highlighted prop when submenu popup is opened using keyboard #1310

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

onehanddev
Copy link
Contributor

Improve Menu Navigation and Fix Highlighting Issue

  • Fixed bug where parent expandable menu item is getting highlighted along with the its sub menu with keyboard navigation.
  • Improved navigation by resetting parent menu's highlight state when entering a submenu.

Fixes #1197

…s, allowing for dynamic updates to the active (highlighted) item index. This fixes not updating hover out behaviour of navigation for keyboard events.
Copy link

netlify bot commented Jan 8, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit eecafbd
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/6780fc50a8395d00080e778f
😎 Deploy Preview https://deploy-preview-1310--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mui-bot
Copy link

mui-bot commented Jan 8, 2025

Netlify deploy preview

https://deploy-preview-1310--base-ui.netlify.app/

Generated by 🚫 dangerJS against 03c6581

@onehanddev
Copy link
Contributor Author

@atomiks Please disregard the older PR and review this one instead.

Copy link
Contributor

@atomiks atomiks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A test would be helpful to prevent future regressions

@zannager zannager added the component: menu This is the name of the generic UI component, not the React module! label Jan 10, 2025
@onehanddev
Copy link
Contributor Author

A test would be helpful to prevent future regressions

Unrelated to this PR -- but when I try to run the tests using pnpm t [file-name] I am getting below error -
image

Tried several other commands but it doesn't seem to work, @atomiks It would be great If you can suggest how to correctly run the tests. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Menu] Submenu triggers retain data-highlighted when focus has moved to submenu popup using keyboard
4 participants