Skip to content

Commit 232ea49

Browse files
fix(TopNav): ensure navbar is sticky with consistent z-index and background
1 parent c93962b commit 232ea49

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/navbar/TopNav.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default function TopNav({
4848
isAdmin ? adminLinks : memberLinks;
4949

5050
const navbarClassName = isHomePage
51-
? "h-16 sm:h-20 border-b border-default-200 bg-white"
52-
: "h-16 sm:h-20 border-b border-default-200 bg-white";
51+
? "sticky top-0 z-50 h-16 sm:h-20 border-b border-default-200 bg-white"
52+
: "sticky top-0 z-50 h-16 sm:h-20 border-b border-default-200 bg-white";
5353

5454
const navbarItemClassName = isHomePage
5555
? [
@@ -79,6 +79,8 @@ export default function TopNav({
7979
maxWidth="full"
8080
className={navbarClassName}
8181
classNames={{
82+
base: "z-50",
83+
wrapper: "bg-white",
8284
item: navbarItemClassName,
8385
}}
8486
>

0 commit comments

Comments
 (0)