Skip to content

Mobile nav: fix login button overlapping page H1, bump hamburger to 44px#24

Open
bloppbot wants to merge 1 commit into
Noxville:mainfrom
bloppbot:feat/mobile-foundations
Open

Mobile nav: fix login button overlapping page H1, bump hamburger to 44px#24
bloppbot wants to merge 1 commit into
Noxville:mainfrom
bloppbot:feat/mobile-foundations

Conversation

@bloppbot

Copy link
Copy Markdown

Hey @Noxville — second small contribution. Two related fixes for the mobile nav, both behind @media (max-width: 900px) so desktop is untouched. Let me know if you'd rather have these split.

This does not touch tables / DataTable / wide pages — that's a much bigger conversation about column collapsing or card mode under ~640px and I want to talk about scope before I start. Happy to hear your thoughts in a separate issue or here.

1. "Log in with Steam" no longer overlaps the page H1

Before: in Navigation.module.css, the .auth block (login button or user menu) had position: absolute; top: 100%; right: var(--space-md); margin-top: var(--space-md); inside the ≤900px media query. So even when the hamburger menu was closed, the auth block was rendered as a floating element below the nav header — landing on top of the page H1 (visible on Leaderboard, Player profile, Hero detail, Ability detail, etc.).

After: hidden when the mobile menu is closed, shown inline at the bottom of the drawer when it opens (using the existing .linksOpen ~ .auth sibling selector). Login stays reachable, same model as the rest of the nav items.

I also collapsed the two duplicate @media (max-width: 900px) blocks at the bottom of the file into one — there were a few overlapping rules across them, slightly unwound the redundancy while I was in there.

2. Hamburger toggle bumped from 32×32 → 44×44

WCAG / Lighthouse target-size flags anything under 44×44 as a tap target violation, and the hamburger was 32×32. The icon (the bars) stays the same visual size — just gave the button enough padding to clear 44×44.

Verification

  • npm run build clean, no new warnings.
  • Sanity-checked the selector logic by reading the CSS — .auth defaults to display: flex from the base rule, mobile media query sets it to display: none, then .linksOpen ~ .auth flips it back to display: flex when the drawer opens. Should be no flash on toggle.
  • Tested mentally across the auth states: logged out (Steam button), logged in (user menu + sign out) — both go through .auth so both are gated by the new visibility logic.

What's next

If this lands, I want to do a follow-up PR for the heroes / abilities / leaderboard tables on mobile — they currently render their full desktop column set inside an overflow-x: auto wrapper, which produces the "horizontal scroll inside a sub-frame" UX that issue #8 calls out. Open to suggestions on the right approach (priority-column hiding via TanStack columnVisibility, vs. card mode under 640px, vs. sticky first column + visible scroll affordance) — happy to start a separate issue or sketch a small POC PR if you'd prefer.

…44px

Two related fixes for the mobile nav (≤900px):

1. The auth block (Log in with Steam / user menu) was 'position: absolute;
   top: 100%' which placed it floating below the nav header even when the
   hamburger menu was closed, overlapping the page H1 on every inner
   route. Now hidden when the menu is closed, and shown inline at the
   bottom of the drawer when opened. Login is still reachable via the
   hamburger — same model as the rest of the nav.

2. The hamburger toggle was 32×32px, below the WCAG 44×44px tap target
   minimum (Lighthouse target-size flagged this). Bumped to 44×44 with
   matching padding so the icon stays the same visual size.

Also collapsed the two duplicate '@media (max-width: 900px)' blocks into
one for clarity.
@netlify

netlify Bot commented Apr 25, 2026

Copy link
Copy Markdown

Deploy Preview for windrun ready!

Name Link
🔨 Latest commit 0857fe5
🔍 Latest deploy log https://app.netlify.com/projects/windrun/deploys/69ecef48d8b9690008e662ca
😎 Deploy Preview https://deploy-preview-24--windrun.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant