Skip to content

fix(platform): give side-nav rail links an accessible name - #2329

Merged
cursor[bot] merged 2 commits into
mainfrom
fix/1975-nav-accessible-name
Jul 3, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
fix/1975-nav-accessible-name

Conversation

@Israeltheminer

Copy link
Copy Markdown
Contributor

Every item in the primary left navigation rail is an icon-only link whose label lives only in a Radix hover tooltip — no accessible name, so axe reports link-name violations and the rail announces unnamed "link" nodes (WCAG 2.4.4 / 4.1.2).

NavigationItem renders an icon-only <Link> (internal) or <a> (external) wrapped in <Tooltip content={item.label}>; tooltip content is not an accessible name. Fix: add aria-label={item.label} to both branches. item.label is already the localized string the tooltip shows, so no new i18n keys, and the tooltip remains the sighted-hover affordance.

Regression test renders the real Navigation, asserts every rail link is reachable via getByRole('link', { name }), and passes an axe link-name audit. Verified red→green.

Closes #1975

Israeltheminer and others added 2 commits July 2, 2026 14:01
The primary navigation rail renders icon-only links whose label lived only in a Radix hover tooltip, so screen-reader and keyboard users got no accessible name (WCAG 2.4.4 / 4.1.2): axe reports link-name and the rail announces unnamed "link" nodes.

Add `aria-label={item.label}` to both the internal <Link> and the external <a> in NavigationItem, reusing the same localized label the tooltip already renders (no new i18n keys). The tooltip stays as the sighted-hover affordance.

Add navigation.test.tsx asserting every rail link has a discernible accessible name, plus an axe link-name audit.

Refs #1975
@cursor
cursor Bot merged commit 74b5ea9 into main Jul 3, 2026
50 of 51 checks passed
@cursor
cursor Bot deleted the fix/1975-nav-accessible-name branch July 3, 2026 13:38
larryro added a commit that referenced this pull request Jul 4, 2026
#2329 gave every side-nav rail link an aria-label, so the breadcrumb
test's page-wide getByRole('link', { name: 'Agents' }) now matches both
the rail link and the breadcrumb crumb — a strict-mode collision. Scope
the crumb lookup to the breadcrumb navigation landmark; the rail link is
a separate, valid 'Agents' link.
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.

Bug: Primary side-nav rail links have no accessible name (icon-only; label only in a hover tooltip) — WCAG 2.4.4 / 4.1.2

1 participant