Skip to content
SprecherEast
Issue 1254

Header Resources submenu links do nothing on iPhone Safari

Back to our plan
Done
bugfrontendpriority: high

Problem

On an iPhone in Safari, tapping a link in the header's Resources submenu only closes the menu: the page never changes. The first version of the menu added its own closing behavior on top of a plain expandable section, and tests only ran in Chrome.

Proposed fix

  • Rebuild NavMenu from parts the project already has, with no closing code of our own: the shared Disclosure (new nav look) as the mobile accordion, whose links are plain links like the rest of the mobile menu, and Radix's popover (the same family as the dialog already used) as the wide-screen panel.
  • Native-first check: the kit has Disclosure; Radix has the popover, with Escape, outside press and focus return built in; nothing else needed.
  • Owner's direction (2026-11-16, voice): use common components first, keep it simple, and make links work reliably everywhere.

Acceptance criteria

  • Not done: Tests first: tapping a submenu link on a phone leads to its page and closes the menu; wide-screen panel opens by click, closes on Escape, outside press and a link.
  • Not done: No custom focus, pointer or click-closing code in NavMenu.
  • Not done: The notes (UI kit, component set, navigation) describe it in the same PR.
  • Not done: Checked by the owner on his iPhone after deploy.

Files likely touched

src/platform/ui/NavMenu.client.tsx, src/platform/ui/Disclosure.tsx, their tests, e2e/headerMenu.spec.ts, package.json, the UI notes.

Must not touch

The header global's fields and the migration.

Area

frontend

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab