-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(uishell): close HeaderMenu on blur #5003
Conversation
Deploy preview for the-carbon-components ready! Built with commit 4ef5aa9 https://deploy-preview-5003--the-carbon-components.netlify.com |
fb7f97b
to
771f132
Compare
Deploy preview for carbon-elements ready! Built with commit fb7f97b |
Deploy preview for carbon-components-react failed. Built with commit fb7f97b https://app.netlify.com/sites/carbon-components-react/deploys/5e189a25e499e600080d2057 |
Deploy preview for carbon-elements failed. Built with commit 4ef5aa9 https://app.netlify.com/sites/carbon-elements/deploys/5e1cedc2209bc500071dccaa |
Deploy preview for carbon-components-react failed. Built with commit 4ef5aa9 https://app.netlify.com/sites/carbon-components-react/deploys/5e1cedc2da0d3a00070a10d2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for adding this! 👍
Hmm, one thing I noticed is that tab navigation is now unable to navigate into the opened nav panel.. |
thanks for the save @tw15egan! I added a check to ensure the element triggering the blur isn't one of the sub menu items before closing the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look great! Thanks for updating so quickly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 - Thanks @GregDevProjects!
Closes #4930
{{short description}}
Close the HeaderMenu on blur, to prevent multiple HeaderMenus from being open at once
Changed
If the selected element that triggered the blur has the attribute of
href=#
, then it's another menu, so the expanded HeaderMenu should be closedTesting / Reviewing
cd packages/react && yarn storybook
Link 4
Link 3