Repository navigation
fix(ui): use semantic foregrounds for secondary and selected controls - #183401
Conversation
|
🦞👀 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. |
|
Codex review: needs changes before merge. What this changesThis PR gives secondary icons shared foreground roles and makes selected controls use strong neutral colors. Example: Open Details in the Claw light theme.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored PR provides a useful visual consistency improvement, but existing catalog tests contradict the new opacity contract and the author explicitly retains a dependency hold. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherControl UI theme tokens feed shared styles for navigation, session headers, panels, the composer, and settings, determining their rendered text and SVG colors. flowchart LR
A[Appearance selection] --> B[Theme tokens]
B --> C[Shared foreground roles]
C --> D[Navigation and headers]
C --> E[Panels and composer]
B --> F[Semantic status colors]
D --> G[Rendered controls]
E --> G
F --> G
Technical reviewBest possible solution: Retain the shared foreground roles, update the existing catalog affordance tests, and complete mobile inheritance through the already-owned dependency. Do we have a high-confidence way to reproduce the issue? Current-main CSS independently assigns accent colors and opacity across these controls, and the inspected screenshots corroborate the visible differences; no target code was executed during this review. Is this the best way to solve the issue? Shared tokens in the existing stylesheet owners are a focused solution, with explicit exceptions preserving Public, warning, and destructive semantics. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d79ab6195d8d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +73, Tests +399. Total +472 across 16 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 25, 2026, 3:54 AM ET / 07:54 UTC. |
Keep hover, keyboard focus, touch, and pointer-event checks while allowing the approved icon color treatment from #183401. Main CI 40244957654 failed on obsolete opacity expectations. All 7 catalog browser tests pass with this change.
…openclaw#183401) Apply consistent foreground roles to controls while preserving active, disabled, and destructive states. Consolidate repeated desktop selectors without changing their styling.
…penclaw#183972) Keep hover, keyboard focus, touch, and pointer-event checks while allowing the approved icon color treatment from openclaw#183401. Main CI 40244957654 failed on obsolete opacity expectations. All 7 catalog browser tests pass with this change.
Summary
Give secondary controls consistent resting foregrounds and clear active states. Header and composer controls use shared text/icon roles, selected Settings icons use the active neutral foreground, and destructive actions retain their semantic color.
Visual comparison
Before:
mainat866f693e95e4d0bf8779b18ddd722ea51cb72459. After: this PR at49448f5f54831cd422138d5fba7523f10a72afb4. The same native Claw themes and fixtures are used on both sides, with no style overrides. These comparisons show foreground color and emphasis.Header and composer
Selected Settings item
Mobile light at the final PR head
Validation
Four focused screenshot scenarios passed on each source tree, covering Claw light/dark chat and Settings; the After run also captured an unobscured mobile composer. The Claw light/dark desktop and mobile action-state cases and the sharing-directory scroll case passed (3/3), with no review findings. The raw CSS build is 1,595,382 bytes, below the 1,595,719-byte cap. Gzip CSS is 307,880 bytes versus 307,482 on the base; only the 64-byte growth allowance is exceeded. Final-head GitHub checks remain required.