Repository navigation
fix(ui): expose active split pane to assistive tech - #127213
vyctorbrzezowski merged 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
gonzoblasco
left a comment
There was a problem hiding this comment.
The aria-current="true" on the active split cell lands exactly the semantic state #126714 was missing, and doing it as a semantic-only change (no CSS, no geometric marker) respects the visual direction that issue deliberately set. Appreciate the attribution - this was flagged as the WCAG 1.4.1 follow-up, and aria-current is the right token here over aria-selected (split panes are not a tablist).
Implementation reads correct:
aria-current=${options.splitMode && options.active ? "true" : nothing}keeps the attribute off in classic single-pane mode and on inactive panes, andnothing(rather than an empty string) removes it cleanly via Lit.- The DOM test covers both presence (
[null, "true"]) and migration (["true", null]) after pointer activation, so the reactive update path is verified.
Two minor notes, neither a blocker:
- Coverage drives migration off
pointerdownonly - the attribute derives from the sameoptions.activepath that@focusinupdates, so it is not a real gap, but afocusinmigration assertion would close it for symmetry. - The PR body says tests were deferred to Testbox closeout - make sure the full suite (not just the new DOM test) is green in CI before merge, since the body claims no local test run.
Nice, tight follow-up. This closes the a11y hole #126714 left open.
|
ClawSweeper Rank-up move: skipping a second focus-specific Testbox assertion for this merge. Both |
|
Merged via squash.
|
Closes #127212.
What Problem This Solves
Fixes an issue where screen-reader users of Control UI split view could not determine which pane was active and would receive interaction or output.
Why This Change Was Made
Flagged by @gonzoblasco in #126714 (#126714 (comment)) — thanks.
In this PR, the existing split-pane owner exposes
aria-current="true"on the active pane only, so the state follows the same pointer and focus activation path as the existing active class. This PR makes no visual change: it adds no CSS, and the accent bar was deliberately not added because #126714 removed that visual weight by design.User Impact
With this PR, assistive technology can identify the current split pane, and that semantic state moves when the operator activates another pane. Visual appearance and interaction behavior remain unchanged.
Evidence
aria-current="true"is present only on the active split pane and migrates after pointer activation.