Daily Accessibility ReviewAnchor elements used as buttons without href or role="button" are not keyboard accessible
#17879
Replies: 1 comment
|
This discussion was automatically closed because it expired on 2026-06-05T08:36:58.761Z.
|
0 replies
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/pages/home.vue, two<a>elements are used as interactive buttons without anhrefattribute and withoutrole="button". These anchor elements are not keyboard-focusable by default (since they have nohref), meaning keyboard-only users and screen reader users cannot interact with them.Code Location
shell/pages/home.vue, lines ~496 and ~660:These appear inside
<h2 class="too-many-clusters">elements and are the only way to toggle between "show all" and "show some" cluster views.Impact
role="button"or anhref, the semantics are ambiguous.WCAG 2.2 Reference
Suggested Fix
Replace the
<a>elements with<button>elements (preferred, since there is no navigation URL) or add appropriate ARIA attributes:If keeping
<a>for styling reasons, addrole="button",tabindex="0", and keyboard handler:All reactions