-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
functionality for fixed navbar #980
Conversation
@atchox is attempting to deploy a commit to the timlrx's projects Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thanks for the feature contribution, code looks fine to me but appreciate it if you could run it through prettier and push back the changes. I am getting the following errors on vercel:
|
@timlrx ran through prettier. Thanks for the review! |
Hmm I get the following error in the console:
|
line 184 of |
desktop.recording.movmobile.recording.mov |
I couldn't recreate the issue with the video component but I fixed it for the code block. Hope this works! |
This works, thanks for the contribution! |
This provides functionality for a fixed navbar, which can be enabled by using the
stickyNav
key in thesiteMetadata.js
file. The CSS implementation of locking the scroll (by setting the overflow property on the body element) when the mobile nav is open has been replaced with the use of the npm packagebody-scroll-lock
. This allows for more consistent behavior across devices and prevents the page from scrolling to the top when the nav is closed.screen.mov