diff --git a/.unipi/docs/fix/2026-06-03-mobile-menu-drawer-stacking-fix.md b/.unipi/docs/fix/2026-06-03-mobile-menu-drawer-stacking-fix.md new file mode 100644 index 0000000..1d852ec --- /dev/null +++ b/.unipi/docs/fix/2026-06-03-mobile-menu-drawer-stacking-fix.md @@ -0,0 +1,29 @@ +--- +title: "Mobile menu drawer invisible — Quick Fix" +type: quick-fix +date: 2026-06-03 +--- + +# Mobile menu drawer invisible — Quick Fix + +## Bug +After redesigning the mobile menu to the full-screen Figma drawer (`4164-5336` → `ARK V2 - 導航菜單`), tapping the hamburger toggled the icon to `X` but the drawer overlay never appeared on screen. Page content stayed fully visible and the bottom nav stayed on top. + +## Root Cause +The drawer was rendered as a child of `
`. A `position: sticky` element with a `z-index` creates its own stacking context, which traps the drawer's `position: fixed; z-50` inside that context. Globally, the drawer ends up bound to the header's `z-40` layer, while the unrelated bottom navigation (`