Skip to content
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

Account for header bar in scroll target offsets #287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mootari
Copy link

@mootari mootari commented Jan 5, 2025

Prevents sticky headings from covering framework names when navigating to a component via the sidebar.

Before After
before, without scrollbar after, without scrollbar
before, with scrollbar after, with scrollbar

Prevents sticky headings from covering framework names when navigating to a component via the sidebar.
@mootari mootari changed the title fix(ui): add scroll padding Account for header bar in scroll target offsets Jan 5, 2025
@mootari
Copy link
Author

mootari commented Jan 5, 2025

It may also help to show when content is covered by the sticky headings, by applying the same blur filter that's already used for the Header component. Unfortunately that may be more involved since the lack of a left padding would cause the blur effect to just cut off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant