Repository navigation
ui: share one radio component across single-choice controls - #194145
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 7, 2026
…#194145) * ui: share one radio component across single-choice controls * fix(ui): preserve radio contrast and update selection assertions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Radios in the Control UI had drifted apart. There were six radio surfaces with five sizes (13, 14, 16, 18 and 19px), three ring colors, two checked styles (an inset accent dot and a browser-default ring) and one radio that showed a checkmark. The question card's radio looked like a checkbox. Its own-answer row was square in chat but round on the question page. The keyboard handling was copied into each group, and only some copies supported Home/End or right-to-left layouts.
User Impact
Why This Change Was Made
ui/src/components/solid/radio.tsxadds:Radio: a native<input type="radio">inside its<label>. The input itself draws the mark.RadioMark: the same mark for rows that arerole="radio"buttons. The row passescheckedanddisabled.nextRadio(event, radios): Arrow, Home and End movement for custom radio groups. Callers keep their own selection logic.Changed:
aria-pressedattribute from the move dialog'srole="radio"rows.Left alone on purpose:
menuitemradiocheckmarks and the dashboard filter's menu-style rows.Radios stay circular in square-corner themes such as CRT, because a square mark reads as a checkbox.
Evidence
All images come from
pnpm dev:ui:mockby clicking through the UI. In Absolutely light unless noted.Validation passed: 76 focused unit tests, both affected cloud-placement E2E scenarios, UI typechecking, targeted lint/stylelint, formatting, and diff checks. Forced-colors selection and keyboard focus were verified in the existing mock app’s device-pairing dialog using Chromium media emulation. Normal-theme rules are unchanged by that correction.
CI for the reviewed head
d11d74a.