Mobile Navigation Drawer Test

Testing fixes for mobile navigation drawer clipping issue

📱 Testing Instructions

  1. Resize your browser window to mobile width (< 1024px) or use browser DevTools mobile view
  2. Click the hamburger menu icon in the top-right corner of the header
  3. Verify the navigation drawer slides in from the right side
  4. Check that the drawer extends to full viewport height (not clipped at 70px)
  5. Verify the drawer background is solid dark (site content should not bleed through)
  6. Test on desktop (≥ 1024px) - navigation should be horizontal in header, not a drawer

✅ Expected Behavior (Mobile)

The navigation drawer should slide in from the right side of the screen and extend from top to bottom of the viewport. It should NOT be clipped or limited to the header's 70px height. The drawer should have a solid dark background with a semi-transparent overlay behind it. Navigation links should be vertically stacked and easily accessible.

✅ Expected Behavior (Desktop)

On desktop screens (≥ 1024px), the navigation should appear horizontally in the header bar, not as a drawer. The hamburger menu button should be hidden. Navigation links should be visible and clickable in the header.

Technical Changes Applied

1. Parent Overflow Fixes

.genesis-header and .genesis-header__container now have overflow: visible !important; to allow the mobile drawer to render outside the header boundaries.

2. Mobile Drawer Positioning

.genesis-header__nav uses position: fixed !important; on mobile with:

  • top: 0; - Anchored to top of viewport
  • bottom: 0; - Anchored to bottom of viewport
  • right: 0; - Aligned to right edge
  • height: 100vh; - Full viewport height
  • z-index: 2000; - High stacking context

3. Solid Background

Mobile drawer has background: oklch(0.12 0.01 250) !important; to ensure solid dark background that prevents site content from bleeding through.

4. Desktop Reset

On desktop screens (≥ 1024px), positioning resets to position: static !important; and background becomes transparent, allowing navigation to appear inline in the header.

Manual Test Checklist

Use the following checklist to verify all aspects of the fix:

Mobile (< 1024px)

  • ✓ Hamburger menu button is visible
  • ✓ Clicking hamburger opens drawer from right
  • ✓ Drawer extends full viewport height (not 70px)
  • ✓ Drawer has solid dark background
  • ✓ Navigation links are vertically stacked
  • ✓ All links are touchable (≥44px touch targets)
  • ✓ Clicking overlay closes drawer
  • ✓ Transform animation is smooth

Desktop (≥ 1024px)

  • ✓ Hamburger menu button is hidden
  • ✓ Navigation appears horizontally in header
  • ✓ Links have transparent background
  • ✓ Hover states work correctly
  • ✓ No drawer behavior on desktop

Filler Content for Scrolling

This section provides content to test that the header remains sticky and the drawer works correctly during scrolling.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident.

Similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio.