Skip to content

πŸ› [Bug / UX] Navbar broken on mobile β€” no hamburger menu, links overflow viewportΒ #24

@KGFCH2

Description

@KGFCH2

Problem

On screens narrower than 768px, the LearnSphere navbar has no mobile adaptation. All navigation links and auth buttons render in a single horizontal row that overflows the viewport, making navigation impossible without horizontal scrolling.

Current Behavior

  • Nav links and "Log in / Sign up" buttons overflow off-screen on mobile
  • No hamburger menu or collapsible navigation exists
  • Horizontal scrollbar appears on narrow screens
  • Keyboard users cannot access nav links reliably

Why This Improvement Is Needed

Over 60% of web traffic comes from mobile devices. A broken navbar on mobile means the majority of potential users cannot navigate the platform. This is a critical UX issue.

Proposed Solution

  1. Add a .hamburger button (3-line icon) visible only on mobile via @media (max-width: 768px)
  2. Nav slides in below the header when toggled
  3. Hamburger animates into X when open (CSS transform)
  4. ARIA: aria-expanded, aria-controls, aria-label on toggle button
  5. Escape key closes menu and returns focus
  6. Nav links auto-close menu on click

Expected Outcome

A smooth, accessible mobile navigation experience. No overflow on any screen size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions