unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4k stars 467 forks source link

Landing page: Main section content overlapping navbar on scrolling followed by navigating back to the landing page #1630

Closed prajwalkulkarni closed 5 months ago

prajwalkulkarni commented 5 months ago

Preliminary Checks

Reproduction / Replay Link (Optional)

No response

Issue Summary

Contents of the main section overlap with the navbar upon scrolling down, followed by clicking on "Get started" and navigating back to the landing page using the browser back button.

Steps to Reproduce

  1. Visit the landing page
  2. Scroll down a little
  3. Click on "Get started"
  4. Go back to the landing page by clicking on the browser back button

Expected behavior

Upon navigating back to the landing page, it looks like the scroll position is preserved, but since adding background opacity happens only on scrolling, the opacity of navbar is reset leading to this behavior. Ideally, the correct opacity should be applied when the navbar is mounted regardless of whether the user performs a scroll action. Alternatively, an auto scroll to the top can be performed whenever the navbar component is mounted.

Either way, the expectation is that the contents of the main section should not overlap the navbar.

Other information

No response

Screenshots

overlap-issue

overlap-issue-2

Version info

- OS: Windows 11
- Browser: Chrome 124.0.6367.119
linear[bot] commented 5 months ago

ENG-1064 Landing page: Main section content overlapping navbar on scrolling followed by navigating back to the landing page