-
Notifications
You must be signed in to change notification settings - Fork 6
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: Scrollytelling layout in Next instance #1408
Conversation
✅ Deploy Preview for veda-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I believe |
Yeah, I noticed the deploy preview isn't updating the library correctly. I need to figure out how to make it use this branch. Still not an expert on our verdaccio setup — and hopefully, I won't have to become one! 😅 |
@AliceR if you are publishing the same version to verdaccio, the build needs to be kicked off again to re-install that version. |
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.
Tested in NextJS and works as expected. Thanks for fixing @AliceR
👋 I see a bug that scrollytelling doesn't scroll away even when the scrollytelling section is done (from the next instance preview!) |
Hej @hanbyul-here , thanks for reporting! Do you think the bug was introduced by this change? Or is that a separate issue? |
This PR probably didn't introduce the bug, but if its intention was to handle #1402, I think it is the same issue. (Feel free to handle it in whichever way you prefer! I mainly wanted to flag what I found!) |
Related Ticket: Fix #1402
Description of Changes
Provide a fallback value for top offset of ScrollyMapContainer: When
topOffset
is undefined it causes the csstop
property to be faulty, which makes theposition: sticky
not working.Notes & Questions About Changes
Do we still need the whole
useSlidingStickyHeaderProps
logic with the USWDS header?Validation / Testing
You will to validate in the next-veda instance, making sure the map stays sticky on the top when scrolling down.
Related PR on next-veda-ui: developmentseed/next-veda-ui#41