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

[Task]: How can we stop sticky nav overlapping H2s when anchored down #12903

Open
HarryFischer opened this issue Nov 22, 2024 · 0 comments
Open
Labels
Rota Any issues that have come in as part of rota. Useful for the person on rota to track their work.

Comments

@HarryFischer
Copy link
Contributor

Context

A common problem with sticky navs that use hashed anchor links is the heading sits at the top of the viewport and is therefore covered by the navigation:
Image

—One option is to use a scrollTo function instead of the anchor links and offset the top value. This would mean a refactor of this component
—Another, using just css, is to apply a positive padding-top and negative margin-top. Like this https://stackoverflow.com/questions/10732690/offsetting-an-html-anchor-to-adjust-for-fixed-header

Maybe there is another way...

cc @JamieB-gu @paperboyo

Priority

No response

@HarryFischer HarryFischer added the Rota Any issues that have come in as part of rota. Useful for the person on rota to track their work. label Nov 22, 2024
@github-project-automation github-project-automation bot moved this to Triage in WebX Team Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rota Any issues that have come in as part of rota. Useful for the person on rota to track their work.
Projects
Status: Triage
Development

No branches or pull requests

1 participant