-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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(gatsby-remark-autolink-headers): Scroll to document top #20363
Conversation
Fixed scroll position issues with relative parent for gatsby-remark-autolink-headers gatsby-browser.js
Fixed scroll position issues with relative parent for gatsby-remark-autolink-headers in gatsby-ssr.js
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.
Nicely done! Also had issues like this in past. Tried it locally and works fine.
Holy buckets, @Rikpat — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Changed autolink headers offset because of changed scroll based on page position instead of container in #20363
Changed autolink headers offset because of changed scroll based on page position instead of container in #20363
Description
Calculates scroll position in autolink-headers relative to document top instead of closest relative parent
Documentation
Related Issues
Fixes #20362