website icon indicating copy to clipboard operation
website copied to clipboard

chore(Navbar): header overlaps page content on homepage

Open codeurluce opened this issue 5 months ago • 1 comments

Description:

The header navigation overlaps with the page content on scroll / initial render.

This causes UI/UX issues where the top section of the page is hidden behind the navbar.

Steps to reproduce:

  1. Open Kubeflow website homepage
  2. Observe header position over main content
  3. This only concerns part of the homepage because when scrolling down, you realize that the header has a background.

Expected behavior:

The page content should not be hidden behind the header.

Actual behavior:

The header overlaps the content.

Possible cause:

Missing top padding/margin or incorrect z-index/sticky header behavior.

Screenshots:

Image Image Image

codeurluce avatar Jun 12 '26 19:06 codeurluce

Hi @andreyvelich @chasecadet @juliusvonkohout — I tested this on both desktop and mobile (screenshots below) and couldn't reproduce the header/content overlap described in this issue. Desktop: Clear separation between the navbar and the "Kubeflow" hero heading, no overlap. Mobile (Chrome, Android): Same — logo and hamburger menu sit cleanly above the heading with visible spacing. This may have been resolved by an unrelated navbar/CSS change since the issue was filed. Happy to help investigate further if this is still reproducible under specific conditions (e.g. a particular viewport width, browser, or scroll state) — let me know if there's a repro case I'm missing. Otherwise, feel free to close if this checks out on your end too.

Image Image

Ishan-AI-coder avatar Jul 05 '26 09:07 Ishan-AI-coder

I could not reproduce this either, which matches what @Ishan-AI-coder found in July.

Measured the homepage at three widths in Chromium, at scroll-top:

Viewport nav.js-navbar-scroll h1 top Gap
375 x 812 ends at 56px 120px 64px
1280 x 720 ends at 56px 120px 64px
1920 x 900 ends at 106px 176px 70px

No overlap at any of them.

One thing that might explain the original report. The navbar is position: fixed, and nothing on the site sets scroll-padding-top or scroll-margin-top, so following any in-page anchor does put content underneath the navbar. Jumping to a heading leaves it hidden by the full 106px, and it happens through the right-hand table of contents too. That is content hidden behind the header, just by a different mechanism than a static overlap, and it reproduces every time.

I have opened #4460 for that with the measurements and a one-line fix. If it turns out to be what was originally seen here, this one could close as not reproducible.

opensource-joe avatar Aug 20 '26 01:08 opensource-joe

Thank you then /close

juliusvonkohout avatar Aug 21 '26 11:08 juliusvonkohout

@juliusvonkohout: Closing this issue.

In response to this:

Thank you then /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

google-oss-prow avatar Aug 21 '26 11:08 google-oss-prow