kubernetes / kubernetes/website

Scrolling to target element hides headings

Open
#29,909 13 comments 0 reactions 0 assignees View on GitHub
area/web-development kind/bug lifecycle/frozen needs-triage priority/important-longterm
Dominant language
HTML
Stars
5.4k
Forks
15.7k
Avg merge
4d 18h
Merged PRs (30d)
204

Description

**This is a Bug Report**

**Problem:**
If you have a narrow enough viewport and then follow a link to a fragment of a documentation page, the heading (or whatever) that the hyperlink represents is fully or partially hidden behind the top nav.

**Proposed Solution:**
Tweak the CSS (Sass) to avoid that snag.

**Additional Information:**
/area web-development

**Screenshots**
The (second) portrait screenshot shows that the heading text “Resizing an in-use PersistentVolumeClaim” isn't shown the way the reader would expect it to be.

![Landscape](https://user-images.githubusercontent.com/22591623/135764680-22d604ae-ed14-4a05-8d55-75280a3bebcc.png)
![Portrait](https://user-images.githubusercontent.com/22591623/135764682-40ed6164-7ed7-41c6-adb0-e5f815413159.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by opening a documentation fragment link in a narrow viewport, then inspect the Sass styles controlling the top navigation and fragment target positioning. Done means the linked heading remains fully visible below the navigation in the affected portrait layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
sass
Domain
documentation, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.