Skip to content

Mobile/a11y pass against the redesigned site (salvage from #36) #49

Description

@c-1k

PR #36 predates the redesign and conflicts, but triage confirmed ~85% of its substance is still ABSENT at current HEAD. Redo fresh against current components:

  1. viewport-fit=cover + Viewport export (appleWebApp/themeColor/colorScheme) in layout.tsx — HIGH
  2. focus-visible rings across nav/hero/cta/footer/copy-command/before-after — HIGH (a11y; zero focus-visible occurrences site-wide today)
  3. globals.css: safe-area utils (.safe-top/.safe-bottom/.safe-x), -webkit-tap-highlight-color, -webkit-text-size-adjust, scroll-padding-top
  4. Nav: body scroll-lock + overscroll-behavior:contain + Escape-to-close + focus-return
  5. Hero: 100dvh + responsive pt (fixes iOS toolbar jank; no dvh anywhere today)
  6. Code panels (governance-receipt, typewriter-code ×2, before-after): overflow-x-auto + min-w-0 — currently overflow-x-hidden, clip risk ≤375px
  7. Finish 44px targets: nav hamburger (w-10→w-11), nav mobile links, before-after toggle, copy-command
  8. before-after.tsx: useReducedMotion + aria-pressed (JS crossfade still fires for reduced-motion users)

Integration note: master has a standalone html{scroll-behavior:smooth} rule — merge into the html{} block, don't duplicate. Typography bumps from #36 skipped (cosmetic, re-judge with fresh eyes).

Relevant pre-HN: HN traffic is heavily mobile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions