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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent anchor links from hiding behind navbar #502

Merged
merged 1 commit into from May 29, 2022

Conversation

imchell
Copy link
Contributor

@imchell imchell commented May 28, 2022

馃摑 Description

When clicking any section title (rendered by LinkedHeading()) in doc, the page jump to where a part of the section is hiding behind the navbar.

This is a common problem caused by sticky navbar, which can be solved by CSS scroll snap module.

鉀筹笍 Current behavior (updates)

Current behavior

Note that Size section actually hides behind navbar.

馃殌 New behavior

New behavior

馃挘 Is this a breaking change (Yes/No): No

馃摑 Additional Information

@imchell imchell requested a review from jrgarciadev as a code owner May 28, 2022 16:48
Copy link
Member

@jrgarciadev jrgarciadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge thanks @imchell 馃檹馃徎

@jrgarciadev jrgarciadev merged commit 952cbaa into nextui-org:main May 29, 2022
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.

None yet

2 participants