Skip to content

fix(nav): the current page was coloured, never announced - #167

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/nav-contract
Aug 31, 2026
Merged

fix(nav): the current page was coloured, never announced#167
github-actions[bot] merged 1 commit into
mainfrom
fix/nav-contract

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

isActive already decided the link's colour and set no aria-current — the current page existed only for people who can see it. Zero occurrences of aria-current anywhere in this codebase.

The megamenu trigger is untouched: it's a disclosure button, not a link to a page, and Popover.Button already announces aria-expanded/aria-haspopup itself.

No visual change.

Verification

tsc --noEmit shows 3 pre-existing errors (missing vitest types after the recent jest→vitest migration, confirmed unrelated by diffing with/without this change — identical count both ways). Lint clean.

Found by the fleet nav-contract audit, which flags a repo whose navigation computes an active state and never announces it anywhere.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE

`isActive` already decided the link's colour and set no aria-current, so the
current page existed only for people who can see it. Zero occurrences of
aria-current anywhere in this codebase.

The megamenu trigger is untouched: it is a disclosure button, not a link to a
page, and Popover.Button already announces aria-expanded/aria-haspopup itself.

No visual change.

Found by the fleet nav-contract audit, which flags a repo whose navigation
computes an active state and never announces it anywhere.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeELB8b3N4JrT2asYL9WvE
@github-actions
github-actions Bot merged commit 5817ce3 into main Aug 31, 2026
1 check passed
@github-actions
github-actions Bot deleted the fix/nav-contract branch August 31, 2026 11:49
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