Skip to content

Make Navbar Sticky for Persistent Visibility During Scroll #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jency1 opened this issue Apr 25, 2025 · 0 comments · Fixed by #367
Closed

Make Navbar Sticky for Persistent Visibility During Scroll #365

jency1 opened this issue Apr 25, 2025 · 0 comments · Fixed by #367
Assignees

Comments

@jency1
Copy link
Contributor

jency1 commented Apr 25, 2025

Feature Request 🛍️

Make the navbar sticky so it remains visible at the top of the page during scroll.

Use Case

When users scroll down the page, the navigation bar should remain fixed at the top. This improves usability by keeping navigation links accessible at all times.

Possible Solution

Use CSS position: sticky with top: 0 and z-index to ensure the navbar stays on top. Already implemented by adding the following style to the top-level <div> in Navbar.tsx

position: "sticky",
top: 0,
zIndex: 1000,

Context

Previously, users had to scroll all the way up to access navigation options. Keeping the navbar fixed enhances user experience and accessibility.

Detailed Description

Update the Navbar.tsx component to include position: sticky, top: 0, and zIndex: 1000 on the outermost container. This ensures the navbar remains at the top of the screen while scrolling, without overlapping or hiding behind other components.

Preview Suggestion

With Sticky Navbar

With Sticky Navbar

Without Sticky Navbar

Without Sticky Navbar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant