Repository navigation
fix(platform): give side-nav rail links an accessible name - #2329
Merged
Merged
Conversation
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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-nameviolations and the rail announces unnamed "link" nodes (WCAG 2.4.4 / 4.1.2).NavigationItemrenders an icon-only<Link>(internal) or<a>(external) wrapped in<Tooltip content={item.label}>; tooltip content is not an accessible name. Fix: addaria-label={item.label}to both branches.item.labelis 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 viagetByRole('link', { name }), and passes an axelink-nameaudit. Verified red→green.Closes #1975