-
Notifications
You must be signed in to change notification settings - Fork 4k
Revamp mobile navigation #3282
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
base: main
Are you sure you want to change the base?
Revamp mobile navigation #3282
Conversation
🦋 Changeset detectedLatest commit: 15e0adc The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
0f4a839
to
af27aba
Compare
Summary of the deployments: Version 1
Version 2
Test content |
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
af27aba
to
de795ca
Compare
d66bc22
to
1e5218e
Compare
1e5218e
to
191dd67
Compare
d8e4f8a
to
ab4af82
Compare
// biome-ignore lint/correctness/useExhaustiveDependencies: Close the navigation when navigating to a page | ||
useEffect(() => { | ||
setOpen(false); | ||
}, [pathname]); | ||
|
||
useEffect(() => { | ||
// If the menu is open, we add a class to the body to prevent scrolling | ||
if (open) { | ||
document.body.style.overflow = 'hidden'; | ||
} else { | ||
document.body.style.overflow = 'auto'; | ||
} | ||
}, [open]); |
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.
It's a bit more complicated than that:
Can you use that insteand?
No description provided.