-
Notifications
You must be signed in to change notification settings - Fork 273
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: left nav duplicate active selection and jumping scroll #819
fix: left nav duplicate active selection and jumping scroll #819
Conversation
…carbon into fix-global-spacing
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/carbon-design-system/gatsby-theme-carbon/nkdzoo89a |
Lookin good! do you mind doing a quick video of how we can test this/see it in action? |
…n into left-nav-jump
@sstrubberg I just pushed what I'm testing with. The duplicate accordion nav items. Is that still showing the issue for you? |
Should we just give it an |
@sstrubberg @jnm2377 those eslint react hooks rules from the react team are super well thought out, I'm down for disabling some rules for old code but we it looks like they've caught something that's a little off here. |
Since the left nav is the only thing that cares about the scroll position, I'm not sure it makes sense to lift it all the way up to the app level context. Gatsby let's you pass |
I think it's looking great. Only issue now is when there's two menu's open and one closes after navigation, the new scroll position is off. Verified with @aagonzales that the open state of the menus should persist through navigation. That way the mouse is still over the target they interacted with. |
@vpicone @sstrubberg this is ready for re-review. |
Closes #386
Closes #345