Skip to content

fix(nav): the in-page nav marked the current section for the eye only - #26

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

fix(nav): the in-page nav marked the current section for the eye only#26
github-actions[bot] merged 1 commit into
mainfrom
fix/nav-aria-current

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

The section nav tracks which section is in view via an IntersectionObserver and expressed that as data-active — a styling hook and nothing more. A screen-reader user got no signal about where in the page they were.

aria-current="location", not "page": this is a one-page site and the nav tracks a section, which is exactly what location means. Claiming page would announce a navigation that never actually happens here.

No visual change — data-active still drives the styling.

Verification

Typecheck clean, lint clean, 92 tests pass, formatting 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

The section nav tracks which section is in view via an IntersectionObserver
and expressed that as `data-active`, which is a styling hook and nothing more.
A screen-reader user got no signal about where in the page they were.

`aria-current="location"`, not `"page"`: this is a one-page site and the nav
tracks a SECTION, which is exactly what `location` means. Claiming `page`
would announce a navigation that never happens here.

No visual change — `data-active` still drives the styling.

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 aa0a6f2 into main Aug 31, 2026
1 check passed
@github-actions
github-actions Bot deleted the fix/nav-aria-current branch August 31, 2026 11:35
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