Skip to content

Fix Navbar Z-Index #313

Description

@anurag-p6

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

ISSUE_NAVBAR.mp4

Contributor Guides and Resources

Activity

  1. changed the title [-]fix: navbar z-index unreliable — page buttons render above sticky header[/-] [+]Fix Navbar Z-Index[/+] on Aug 12, 2026
  2. anurag-p6 commented on Aug 12, 2026

    @anurag-p6
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions