Skip to content

Commit b417c87

Browse files
fix(web): wrap the utility cluster in a navigation landmark
Volunteer and the GitHub link left "Primary navigation" in this PR and landed in a plain div, so they fell out of every navigation landmark. A second nav labelled "Utility" keeps them reachable by landmark without moving them back; app-shell.md's Accessibility section now names both landmarks. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RdRwHvDupRLV8GuJpYKzEr
1 parent 6cdccd1 commit b417c87

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎apps/web/src/components/AppHeader.tsx‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ export function AppHeader() {
250250

251251
{/* Desktop utility cluster: GitHub, search, auth, then the Volunteer
252252
CTA pinned rightmost (specs/behaviors/app-shell.md). */}
253-
<div className="hidden md:flex items-center gap-2 ml-auto">
253+
<nav
254+
aria-label="Utility"
255+
className="hidden md:flex items-center gap-2 ml-auto"
256+
>
254257
<GitHubLink />
255258
<SearchBox />
256259
<AuthControls />
@@ -261,7 +264,7 @@ export function AppHeader() {
261264
>
262265
<NavLink to="/volunteer">Volunteer</NavLink>
263266
</Button>
264-
</div>
267+
</nav>
265268

266269
{/* Mobile: auth + hamburger */}
267270
<div className="flex md:hidden items-center gap-2 ml-auto">

‎specs/behaviors/app-shell.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ It does not block initial paint waiting on `me`. Auth controls render skeletons
190190
- All dropdowns are keyboard-navigable
191191
- The mobile sheet traps focus while open and returns it to the trigger on close
192192
- The mobile sheet is a dialog with the accessible name "Menu"
193+
- At ≥ md the header exposes two navigation landmarks: "Primary navigation" (the content cluster) and "Utility" (GitHub, search, auth, Volunteer)
193194
- Every icon-only control carries an accessible name; controls with visible text use that text as their accessible name rather than duplicating it in a label
194195

195196
## Print

0 commit comments

Comments
 (0)