fix(a11y): add aria-label to cross-filter search icon#41619
Merged
Conversation
WCAG 2.1 SC 4.1.2 — Level A.
Locks in the aria-label added in 244dcc6.
Contributor
Code Review Agent Run #4f405bActionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
kgabryje
approved these changes
Jul 13, 2026
Member
|
@eschutho I think some selectors in unit tests need updating |
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.
Summary
CrossFilterTitle.tsx) is arole="button"icon-only control (clicking it highlights/locates the source chart), but had no accessible name — screen readers would only announce the raw SVG icon content.aria-label={t('Locate the chart')}, reusing the same translated string already shown in the element's visualTooltip, so the visible and accessible names stay in sync.getByRole('button', { name: 'Locate the chart' }).aria-label+tabIndex/role/onClickuntouched.Test plan
npx jest src/dashboard/components/nativeFilters/FilterBar/CrossFilters/CrossFilterTitle.test.tsx— 4/4 passing, including the new accessible-name assertion.Notes
Also spotted a pre-existing, separate gap while reviewing: the icon has
onClickbut noonKeyDown, so Enter/Space won't activate it for keyboard users (the siblingVerticalCollapse.tsxin the same directory already handles this correctly and can serve as a reference). Leaving that out of scope for this PR since it's unrelated to the missing-label fix; happy to follow up separately.