Daily Accessibility ReviewLogin page toggle buttons are inaccessible to keyboard users ((a role="button") without href or keyboard handlers) #17784
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.
-
Summary
The login page uses
<a>elements withrole="button"but without anhrefattribute or keyboard event handlers. This makes these interactive elements inaccessible to keyboard-only users.Problem
In
shell/pages/auth/login.vue, two<a>elements are used as buttons:Both elements:
hrefattribute — so they are not natively focusable via Tab keytabindex="0"— so keyboard users cannot reach themrole="button"must respond to bothEnterandSpacekey presses per the ARIA authoring practicesAs a result, keyboard-only users (including screen reader users) cannot access the "Use Local Login" / "Back to SSO" toggle on the login page.
WCAG 2.2 References
WCAG 2.2 SC 2.1.1 – Keyboard (Level A)
WCAG 2.2 SC 4.1.2 – Name, Role, Value (Level A)
Reference: (www.w3.org/redacted)
ARIA button pattern: (www.w3.org/redacted)
Fix
Either use a real
<button>element, or fix the<a>elements:Option A (preferred) — use
<button>:Option B — fix the
<a>element:Affected File
shell/pages/auth/login.vue— lines 532–551Beta Was this translation helpful? Give feedback.
All reactions