Daily Accessibility ReviewCluster Search Clear Button Not Keyboard Accessible #17813
Unanswered
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
In
shell/components/nav/TopLevelMenu.vue, the cluster search filter has a "clear" icon (<i class="icon icon-close">) that responds to click events but is not keyboard accessible and has no accessible name:Issues:
<i>is not a focusable element — it cannot be reached by Tab key navigationtabindexattributerole="button"aria-label— screen readers will not announce the purpose of this element@keyup.enteror@keyup.spacehandlerUsers who rely solely on a keyboard or switch device cannot clear the cluster search filter. Screen reader users receive no indication that a "clear" action exists.
WCAG 2.2 References
WCAG 2.2 § 2.1.1 – Keyboard (Level A)
The "clear cluster filter" action is only operable via mouse pointer.
WCAG 2.2 § 4.1.2 – Name, Role, Value (Level A)
An interactive element with no role and no accessible name fails this criterion.
Suggested Fix
Replace the
<i>with a<button>element (semantically correct for an action that does not navigate):Or, keep the
<i>but add the required accessibility attributes:The i18n key
nav.search.clearFilter(e.g., "Clear cluster search filter") should be added to the translation files.Beta Was this translation helpful? Give feedback.
All reactions