From 583047895f7de0eb11e25bfdd83c6cc3e2acd899 Mon Sep 17 00:00:00 2001 From: Zeeshan Khan Date: Tue, 2 Jun 2026 13:52:23 +0200 Subject: [PATCH] fix: ensure mobile menu and language dropdown appear in front of hero banner video (raised z-indexes for overlays) - Navbar: z-[999] - Mobile menu container/panel: z-[1000]/z-[1001] - Cart drawer: z-[980]/z-[990] - LanguageSwitcher dropdown/backdrop: z-[1010]/z-[1020] - Updated comments - Mobile menu (incl. when clicking language inside it) now reliably stacks above the mobile banner video and other content. --- components/CartDrawer.tsx | 8 ++++---- components/LanguageSwitcher.tsx | 4 ++-- components/Navbar.tsx | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/CartDrawer.tsx b/components/CartDrawer.tsx index bc5d1e1..48ebac5 100644 --- a/components/CartDrawer.tsx +++ b/components/CartDrawer.tsx @@ -11,7 +11,7 @@ * KEY DESIGN CHOICES: * - Fixed position, full-height, max-w-md (beautiful on both mobile and desktop) * - Backdrop click closes it (standard mobile pattern) - * - z-[70] sits above almost everything (including the sticky category nav) + * - z-[990] sits above almost everything (including the sticky category nav) (below mobile menu) * - All cart mutations go through the context — this component is "dumb" UI only * * THE ORDERING FLOW (very important for restaurant context): @@ -82,13 +82,13 @@ Thank you!`; {/* SEMI-TRANSPARENT BACKDROP */} {/* Clicking anywhere outside the drawer closes it (standard mobile pattern) */}
{/* THE ACTUAL DRAWER — slides in from right */} - {/* z-[70] ensures it sits above sticky nav, category pills, and most other UI */} -
+ {/* z-[990] ensures it sits above sticky nav, category pills, and most other UI (below mobile menu) */} +
{/* HEADER — Title + item count + quick clear + close button */}
diff --git a/components/LanguageSwitcher.tsx b/components/LanguageSwitcher.tsx index 2f04e5f..6c87085 100644 --- a/components/LanguageSwitcher.tsx +++ b/components/LanguageSwitcher.tsx @@ -31,12 +31,12 @@ export default function LanguageSwitcher() { <> {/* Backdrop */}
setIsOpen(false)} /> {/* Dropdown */} -
+
{languages.map((lang) => (
- {/* Modern Mobile Menu Drawer (slide-in, animated, high-contrast, touch-friendly) */} + {/* Modern Mobile Menu Drawer (slide-in, animated, high-contrast, touch-friendly) - high z to always appear in front of hero banner video etc. */} {isOpen && ( -
+
{/* Backdrop */}