Skip to content

fix(nav): both sidebars styled the current page and never announced it - #46

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

fix(nav): both sidebars styled the current page and never announced it#46
github-actions[bot] merged 1 commit into
mainfrom
fix/nav-contract

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

The admin sidebar compared pathname.startsWith(href) and the portal sidebar had its own isActive(href) helper — both used the result to paint a highlight and set no aria-current. Zero occurrences of aria-current anywhere in the repo.

Also brings both to the 44px touch floor (py-2 on text-sm was ~36px), enforced nowhere else in this repo either.

No visual change: the active styling classes are untouched.

Verification

Typecheck clean, lint clean, 627 tests pass (22 files).

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

The admin sidebar compared `pathname.startsWith(href)` and the portal sidebar
had its own `isActive(href)` helper — both used the result to paint a
highlight and set no aria-current, so the current page existed only for
people who can see it. Zero occurrences of aria-current in the whole repo.

Also brings both to the 44px touch floor (py-2 on text-sm was ~36px), which
this repo enforced nowhere either.

No visual change: the active styling classes are untouched.

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 4a6b6b3 into main Aug 31, 2026
1 check passed
@github-actions
github-actions Bot deleted the fix/nav-contract branch August 31, 2026 11:36
@catomean
catomean restored the fix/nav-contract branch September 1, 2026 06:18
@github-actions
github-actions Bot deleted the fix/nav-contract branch September 1, 2026 06:20
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