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

fix(SideNav): detect child node for blur #6043

Merged
merged 3 commits into from
May 12, 2020

Conversation

asudoh
Copy link
Contributor

@asudoh asudoh commented May 8, 2020

This changes fixes a logic in <SideNav> where it detects focus on a
nav item as side nav losing focus as a whole.

Fixes #6004.

Changelog

Changed

  • A change to stop toggling on focus/blur upon a side nav item getting/losing focus.

Testing / Reviewing

Testing should make sure side nav is not broken.

This changes fixes a logic in `<SideNav>` where it detects focus on a
nav item as side nav losing focus as a whole.

Fixes carbon-design-system#6004.
@asudoh asudoh requested review from emyarod and a team May 8, 2020 08:25
@ghost ghost requested review from joshblack and removed request for a team May 8, 2020 08:25
@netlify
Copy link

netlify bot commented May 8, 2020

Deploy preview for carbon-elements ready!

Built with commit 3faaf6a

https://deploy-preview-6043--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented May 8, 2020

Deploy preview for carbon-components-react ready!

Built with commit 3faaf6a

https://deploy-preview-6043--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me, the side nav menu no longer collapses and prevents interacting with menu items

@asudoh asudoh merged commit 818705a into carbon-design-system:master May 12, 2020
@asudoh asudoh deleted the detect-child-blur branch May 12, 2020 22:37
joshblack pushed a commit that referenced this pull request May 13, 2020
This changes fixes a logic in `<SideNav>` where it detects focus on a
nav item as side nav losing focus as a whole.

Fixes #6004.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SideNav] when the menu is expanded by hovering it, initially hidden page link won't work
4 participants