Repository navigation
Description
Bug description
Three places in the CP put a focusable element inside a control that already claims an interactive role. Assistive technology can reach the inner element even when it is meant to be hidden, producing a focus stop that announces nothing.
1. Login "Remember me"
<button role="checkbox" aria-label="Remember me" tabindex="4" aria-checked="false">
<input type="checkbox" name="remember" tabindex="-1" style="position:absolute; …">
</button>axe: nested-interactive — "Using a negative tabindex on an element inside an interactive control does not prevent assistive technologies from focusing the element." The inner input additionally trips the label rule, since it has no associated label of its own.
https://github.com/statamic/cms/blob/v6.31.0/resources/js/pages/auth/Login.vue#L115
https://github.com/statamic/cms/blob/v6.31.0/resources/js/components/ui/Checkbox/Item.vue#L113-L124
2. Blueprint builder tab trigger
<button role="tab" id="reka-tabs-v-6-trigger-main" aria-selected="true" tabindex="-1">axe: nested-interactive — element has focusable descendants.
3. Blueprint builder tablist
<div role="tablist" aria-orientation="horizontal" tabindex="0">
… contains div[tabindex] …
</div>axe: aria-required-children (critical) — "Element has children which are not allowed: div[tabindex]".
WCAG 2.1 SC 4.1.2 Name, Role, Value and SC 1.3.1 Info and Relationships (both Level A).
How to reproduce
composer create-project statamic/statamic- For (1): visit
/cp/auth/loginand inspect the Remember me control - For (2) and (3): visit
/cp/fields/blueprints/collections/{handle}/{blueprint}/editand inspect the tab strip - Or run axe-core against either page
Suggested fix
- Render the hidden native checkbox as a sibling of the
role="checkbox"button rather than a child. - Remove the stray
tabindexfrom the tablist's non-tab children so the tablist only containsrole="tab"elements, and drop the focusable descendant inside the tab trigger.
While on the login form: it also uses positive tabindex values 1–6, which pull those controls ahead of the skip links in the tab order. The DOM is already in the intended order, so those can just be removed.
Environment
Environment
Laravel Version: 13.30.1
PHP Version: 8.4.23
Composer Version: 2.10.2
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 0
License Key: Not set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.31.0 PRO
Installation
Fresh statamic/statamic site via CLI
Additional details
Found during a WCAG 2.1 AA audit of a vanilla composer create-project statamic/statamic install with no addons and no custom code. Tested with axe-core 4.x on Chromium 153 at 1440x1000, plus manual keyboard traversal. Source references point at v6.31.0.
Activity
bpmore commentedon Sep 7, 2026
Follow-up: I traced the checkbox half of this to reka-ui, and it is already fixed upstream.
CheckboxRootrenders the hidden native input viaVisuallyHiddenInput. Where that sits changed between releases:VisuallyHiddenInputpositionpackage-lock.json)defaultslot -> child of therole="checkbox"elementFragment-> sibling of the PrimitiveVerified by diffing the compiled
dist/Checkbox/CheckboxRoot.jsacross those versions.package.jsonalready declares"reka-ui": "^2.9.2", which permits 2.10.x. Only the lockfile is holding it at 2.9.5, so refreshing the lock should clear thenested-interactiveviolation on the login form without any source change.I have not opened a PR for the bump, since moving a UI primitive library a minor version across the whole CP deserves your own regression pass rather than mine.
The tablist half of this issue is unrelated to reka-ui and still applies: the
div[tabindex]children insiderole="tablist"in the blueprint builder are Statamic's own markup.Confirming the rendered DOM on
/cp/auth/loginwith 6.31.0 as shipped, so the report above is accurate for the current release:[-][6.x] Interactive controls nested inside other interactive controls in login and blueprint tabs[/-][+]Interactive controls nested inside other interactive controls in login and blueprint tabs[/+]