-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(nav): Improve preview of other nav groups on hover #92352
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
feat(nav): Improve preview of other nav groups on hover #92352
Conversation
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.
This file was removed in #92055, bringing it back since we want the hover to expand behavior back.
|
||
const IGNORE_ELEMENTS = [ | ||
// Tooltips are rendered in document.body so will cause the nav to close | ||
'[data-tooltip="true"]', |
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.
You probably could use data-overlay
even
@@ -74,6 +92,15 @@ const SidebarWrapper = styled('div')<{tourIsActive: boolean}>` | |||
`} | |||
`; | |||
|
|||
const CollapsedSecondaryWrapper = styled(motion.div)` |
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.
Should this be like motion.nav
or something I wonder
- Switches back to a full-height secondary navigation when collapsed - Adds previewing of other nav groups even when the navigation is expanded - Adds some subtle animations when switching the active nav group
Improves on #92055
CleanShot.2025-05-27.at.13.20.35.mp4