play icon indicating copy to clipboard operation
play copied to clipboard

Fix Navbar Z-Index

Open anurag-p6 opened this issue 3 months ago β€’ 1 comments

Describe the bug The navigation/header bar does not reliably maintain its stacking order. Buttons in the page content (e.g. "Access the Playground") appear visually on top of the sticky header as you scroll.

Root Cause btn.style.js hardcodes z-index: 999 on every Button component. The header's z-index is sourced from the styled-components theme (theme.zIndex.navbar). If the theme context is unavailable or misconfigured during render, the header receives no z-index at all β€” allowing z-index: 999 buttons to paint over it.

Expected Behavior The navbar should always remain above page content while sticky.

Steps to Reproduce

  1. Open the site
  2. Scroll down past the "Access the Playground" button
  3. Observe the button / its ring animation overlapping the sticky navbar

Screen Recording

https://github.com/user-attachments/assets/e9ec6b50-3767-41cb-b4de-5b43abde222e


Contributor Guides and Resources

anurag-p6 avatar Aug 12 '26 12:08 anurag-p6

@chaitanyamedidar @banana-three-join can I get this issue assigned. thank you

anurag-p6 avatar Aug 12 '26 12:08 anurag-p6