Skip to content

fix(ui): make tabs, dialogs, and skill cards keyboard accessible - #106320

Merged
steipete merged 5 commits into
mainfrom
codex/control-ui-a11y-foundation
Jul 13, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/control-ui-a11y-foundation

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #106266

What Problem This Solves

Fixes issues where keyboard and assistive-technology users could not reliably skip navigation, activate tabbed settings, open skill cards, or dismiss and focus shared dialogs.

Why This Change Was Made

Adds a native skip link, shared keyboard tab behavior, correct tab and panel relationships, native skill-card actions, and stronger shared modal focus/dismissal behavior. This is the dependency-free accessibility foundation before the Web Awesome component migration.

User Impact

Users can reach main content immediately, move through tabs with Arrow, Home, and End keys, activate skill cards without pointer-only behavior, and use consistent modal focus, Escape, and backdrop dismissal.

Evidence

  • Blacksmith Testbox run: https://github.com/openclaw/openclaw/actions/runs/29243845709
  • UI unit/browser suite: 238 files and 3,781 tests passed.
  • Changed gate passed, including UI typecheck, formatting, and lint.
  • Production Control UI build passed.
  • Changed-surface mocked Gateway E2E: 4/4 passed, including skip navigation and keyboard tab activation.
  • Full UI E2E: 160/166 passed. The six failures are outside this diff: four current expectation/runtime drifts reproduced in isolated reruns, one native-session timing failure passed on isolated rerun, and one stale sidebar expectation follows the newly added Devices route on current main.
  • Fresh autoreview: no accepted or actionable findings.

AI-assisted implementation; maintainer-directed and independently tested.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Jul 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5207c1adf5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1989 to +1990
role="tabpanel"
aria-labelledby=${configSectionTabId(props.activeSection)}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Gate tabpanel ARIA to the tab layout

When ConfigPage renders the main Settings page it passes settingsLayout: "accordion" (ui/src/pages/config/config-page.ts:829), so the config-top-tabs__scroller that creates the config-section-tab-* ids is not rendered. This newly added panel still exposes role="tabpanel" and aria-labelledby pointing at that absent tab id, leaving screen readers with a broken tab relationship on the default Settings page. Please only emit these tabpanel/idref attributes in the tab layout, or give the accordion control matching ids.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 13, 2026, 8:33 AM ET / 12:33 UTC.

Summary
The PR adds Control UI skip navigation, keyboard-complete tab interactions, native skill-card actions, and shared focus-managed dialog behavior across Settings, Automations, Memory Wiki, and Skill Workshop.

PR surface: Source +170, Tests +252, Docs +1. Total +423 across 26 files.

Reproducibility: yes. from source inspection: the default accordion Settings layout omits the referenced tab control while the new panel still exposes tabpanel semantics and its missing id reference. This was not executed as a live reproduction, so the structured status remains source-reproducible.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: vector/embedding metadata: ui/src/pages/agents/memory/view.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #106266
Summary: This PR is the implementation candidate for the immediate dependency-free phase of the broader Control UI accessibility migration.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🦐 gold shrimp
Result: blocked until real behavior proof from a real setup is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Fix the default-layout aria-labelledby relationship and remove the changelog entry.
  • [P1] Add a redacted real-browser recording covering the changed keyboard and focus flows.
  • Resolve the dirty merge state and refresh review on the resulting head.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR has substantial automated and mocked validation but no after-fix real-browser artifact; add a redacted recording showing skip-link focus, arrow-key tabs, skill-card activation, modal dismissal, and focus restoration, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.

Risk before merge

  • [P1] The PR is currently reported as dirty/not cleanly mergeable, so the exact merged result needs refreshed review after conflict resolution.
  • [P1] Automated and mocked checks do not establish that focus visibility, dismissal, and restoration work in a real browser across the affected surfaces.
  • [P1] The protected maintainer label means landing remains an explicit human decision even after mechanical blockers are fixed.

Maintainer options:

  1. Decide the mitigation before merge
    Condition the config panel’s tab semantics on the actual tab layout, remove the PR-authored changelog entry, refresh the branch, and provide a redacted real-browser keyboard recording before an explicit maintainer approves this as phase one of the linked accessibility program.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] The contributor must correct the two findings, supply real-browser proof, and resolve mergeability before the protected maintainer decision can be made.

Maintainer decision needed

  • Question: After the ARIA defect, changelog edit, proof gap, and merge conflict are resolved, should this dependency-free accessibility foundation land as the approved first phase of Control UI: migrate composite controls to accessible web components #106266?
  • Rationale: The linked issue intentionally stages a broader component migration, and the protected maintainer label requires human confirmation that this interim foundation is the desired landing boundary.
  • Likely owner: velvet-shark — This is the only evidence-backed review-routing candidate visible in the supplied discussion, although feature-history ownership remains uncertain.
  • Options:
    • Land the foundation (recommended): Approve this first phase after the mechanical defects, real-browser proof, and mergeability are resolved.
    • Fold into migration: Pause this PR and deliver the same accessibility behavior as part of the later component migration instead.

Security
Cleared: The patch changes local UI markup, styles, tests, and interaction helpers without adding dependencies, permissions, secret access, downloads, lifecycle hooks, or other supply-chain execution surfaces.

Review findings

  • [P2] Gate the tabpanel ARIA to the tabs layout — ui/src/pages/config/view.ts:1983-1987
Review details

Best possible solution:

Condition the config panel’s tab semantics on the actual tab layout, remove the PR-authored changelog entry, refresh the branch, and provide a redacted real-browser keyboard recording before an explicit maintainer approves this as phase one of the linked accessibility program.

Do we have a high-confidence way to reproduce the issue?

Yes, from source inspection: the default accordion Settings layout omits the referenced tab control while the new panel still exposes tabpanel semantics and its missing id reference. This was not executed as a live reproduction, so the structured status remains source-reproducible.

Is this the best way to solve the issue?

Mostly yes. A shared keyboard helper, native action controls, and one focus-managed modal primitive are narrower and more maintainable than duplicating behavior, but the tab semantics must reflect the active layout and the real browser behavior still needs proof.

Full review comments:

  • [P2] Gate the tabpanel ARIA to the tabs layout — ui/src/pages/config/view.ts:1983-1987
    The default Settings page uses the accordion layout, where the config-section-tab-* controls are not rendered, but this panel still publishes role="tabpanel" and aria-labelledby pointing to the absent active-tab id. The head is unchanged from the prior review, so condition these attributes on the tabs layout or provide a matching accordion label relationship.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 29ac6d6c8c61.

Label changes

Label justifications:

  • P1: Keyboard and assistive-technology users can be blocked from important Control UI navigation, settings, skill, and dialog workflows.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR has substantial automated and mocked validation but no after-fix real-browser artifact; add a redacted recording showing skip-link focus, arrow-key tabs, skill-card activation, modal dismissal, and focus restoration, then update the PR body to trigger review or ask a maintainer for @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +170, Tests +252, Docs +1. Total +423 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 16 246 76 +170
Tests 9 255 3 +252
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 26 502 79 +423

What I checked:

  • Prior blocker remains on the reviewed head: The current head is still 4c8bf9eac0b2e4c79ace967d929c4ae9738eb07f, exactly the SHA reviewed when the broken default-layout tabpanel relationship was reported; no later commit fixes it. (ui/src/pages/config/view.ts:1983, 4c8bf9eac0b2)
  • Broken default Settings relationship: The patch always emits a tabpanel labelled by configSectionTabId(props.activeSection), while the documented default accordion layout does not render the corresponding config-section-tab-* control. (ui/src/pages/config/view.ts:1983, 4c8bf9eac0b2)
  • Automated accessibility coverage: The branch adds focused helper tests and mocked browser coverage for roving tab focus, skip navigation, and tab activation, providing useful supplemental validation. (ui/src/e2e/cron-filters.e2e.test.ts:341, 4c8bf9eac0b2)
  • No real-browser evidence supplied: The PR body reports unit/browser tests, mocked Gateway E2E, build, formatting, lint, and typecheck results, but provides no recording, live browser output, or linked artifact demonstrating the changed keyboard and focus behavior in a real setup. (4c8bf9eac0b2)
  • Release-owned file changed: The branch adds its own release-note entry even though repository policy reserves CHANGELOG.md edits for the release workflow. (CHANGELOG.md:35, 4c8bf9eac0b2)
  • Canonical accessibility program: The linked issue explicitly defines this dependency-free skip-link, native-control, shared-modal, and tab-keyboard work as the first phase before a broader accessible-component migration.

Likely related people:

  • velvet-shark: This person was explicitly brought into the existing ClawSweeper review discussion for the Control UI accessibility patch; local feature-history attribution could not be strengthened because read-only shell execution failed before commands started. (role: reviewer and adjacent routing candidate; confidence: low; files: ui/src/pages/config/view.ts, ui/src/components/modal-dialog.ts, ui/src/pages/cron/view.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-13T12:15:51.879Z sha 4c8bf9eac0b2e4c79ace967d929c4ae9738eb07f :: needs real behavior proof before merge. :: [P2] Gate the tabpanel ARIA to the tabs layout

@steipete
steipete force-pushed the codex/control-ui-a11y-foundation branch from 4c8bf9e to d6a33d5 Compare July 13, 2026 12:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5a8406948d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/i18n/.i18n/ar.meta.json Outdated
"fallbackKeys": [],
"generatedAt": "2026-07-13T11:30:02.914Z",
"fallbackKeys": [
"common.skipToMainContent",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Badge Remove recorded locale fallback keys

When the i18n tests run, test/scripts/control-ui-i18n.test.ts:97 reads every ui/src/i18n/.i18n/*.meta.json file and asserts the collected fallbackKeys list is empty. This commit records the new English fallback labels in every generated locale metadata file, so that test now reports entries like ar:common.skipToMainContent and fails; commit only the English source strings or provide real translated artifacts with empty fallbackKeys.

Useful? React with 👍 / 👎.

@steipete
steipete force-pushed the codex/control-ui-a11y-foundation branch from 0faf011 to 43ca54f Compare July 13, 2026 13:05
@steipete
steipete merged commit 879ed1d into main Jul 13, 2026
78 checks passed
@steipete
steipete deleted the codex/control-ui-a11y-foundation branch July 13, 2026 13:20
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
…nclaw#106320)

* fix(ui): improve keyboard accessibility

* fix(ui): remove unused toggle event

* docs(changelog): note control UI keyboard access

* chore(ui): keep release note in PR body

* chore(ui): translate accessibility labels
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 P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant