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

[Website] anchor link titles are hidden under stick top nav #2201

Closed
baronfel opened this issue Nov 15, 2018 · 2 comments · Fixed by #2202
Closed

[Website] anchor link titles are hidden under stick top nav #2201

baronfel opened this issue Nov 15, 2018 · 2 comments · Fixed by #2202

Comments

@baronfel
Copy link
Contributor

Description

When you navigate to a link with an anchor (for example https://fake.build/fake-gettingstarted.html#One-note-on-Intellisense), the section header is (partially) hidden under the sticky top nav bar.

Repro steps

Please provide the steps required to reproduce the problem

  1. Navigate to the URL above

  2. Observe the section header isn't visible once the page loads.

Expected behavior

image

Actual behavior

image

Known workarounds

a) scroll a bit down
b) apply a top-padding of ~50px (or the exact height of the nav bar) to all anchors? This seems to work for me in simple testing.

@baronfel
Copy link
Contributor Author

I added a page-level style of .anchor { padding-top: 50px; } and all links in the side table of contents started working correctly.

@matthid
Copy link
Member

matthid commented Nov 15, 2018

@baronfel Can you please send a PR for this?

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 a pull request may close this issue.

2 participants