Skip to content

fix(ui): expose active split pane to assistive tech - #127213

Merged
vyctorbrzezowski merged 1 commit into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/split-pane-aria-current
Aug 21, 2026
Merged

vyctorbrzezowski merged 1 commit into
openclaw:mainfrom
vyctorbrzezowski:brzezowski/split-pane-aria-current

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

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

  • Added owner-level DOM coverage asserting that aria-current="true" is present only on the active split pane and migrates after pointer activation.
  • Source inspection confirms classic single-pane mode and inactive split panes omit the attribute.
  • No CSS files changed.
  • Tests and checks were not run in this publication phase; formal validation is deferred to Testbox closeout.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Aug 21, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 21, 2026 14:10

@gonzoblasco gonzoblasco left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, and nothing (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:

  1. Coverage drives migration off pointerdown only - the attribute derives from the same options.active path that @focusin updates, so it is not a real gap, but a focusin migration assertion would close it for symmetry.
  2. 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.

@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

ClawSweeper Rank-up move: skipping a second focus-specific Testbox assertion for this merge. Both pointerdown and focusin feed the same handleFocusPane owner, and the owner-level regression already proves that the semantic state migrates when activePaneId changes. Exact-head CI is green, including the focused UI suite and all UI E2E shards.

@vyctorbrzezowski
vyctorbrzezowski merged commit 03d4b8a into openclaw:main Aug 21, 2026
226 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/split-pane-aria-current branch August 21, 2026 14:37
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split pane: expose the active pane to assistive technology

2 participants