Repository navigation
fix(ui): keep menu hover colors consistent across themes - #142243
Conversation
|
Codex review: needs changes before merge. Reviewed September 8, 2026, 11:11 AM ET / 15:11 UTC. ClawSweeper reviewWhat this changesThe PR makes Control UI menu highlights follow the active theme, consolidates repeated color overrides, and adds browser coverage for hover, focus, submenu, disabled, and destructive states. Merge readiness⛔ Needs changes before merge - 1 item remains The PR remains useful: current main still has the reported mismatch, and the inspected visual evidence supports the repair. No actionable patch defect was found; this maintainer-authored PR remains a draft. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI combines theme colors with Web Awesome dropdown components to render menus. This change connects neutral menu highlights to OpenClaw’s theme token, including the browser card’s isolated shadow DOM and composer suggestions. flowchart LR
A[Active theme] --> B[Platform hover color]
B --> C[Shared dropdown styling]
B --> D[Browser card shadow styling]
B --> E[Composer suggestions]
C --> F[Consistent neutral highlights]
D --> F
E --> F
Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +209. Total +207 across 7 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep the shared theme-token mapping and the explicit shadow-root bridge, preserving the component’s existing interaction and destructive-state styling. Do we have a high-confidence way to reproduce the issue? Yes: compare Photo and Skills hover in the Absolutely theme; current-main styling and the inspected before captures support that path. This review did not execute the application. Is this the best way to solve the issue? Yes: centralizing the existing token mapping repairs the shared styling boundary, while the shadow-root bridge handles the one boundary document selectors cannot reach. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ab24c12337b5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Merged via squash.
|
* commit '04869ae4899ad0524c3287759798362b0d62fef8': (677 commits) fix(release): pin Kova census refresh (#142104) fix: doctor read-only database inspections time out on large agent databases (#142179) docs: align v2026.9.3 framing with release announcement (#142307) fix(ui): discover models when default-model pickers open (#142105) fix(ci): keep Docker upgrade seed baseline older than target (#142273) refactor(tests): reuse named OAuth credential fixtures (#142272) fix(ci): keep mobile release helpers out of source checks (#142115) chore(ui): refresh control ui locales (#142147) fix(active-memory): explain why recall was skipped (#138658) fix(media): preserve converted images with HEIC filenames (#142263) docs: add v2026.9.3 release notes (#142277) fix(ui): retire picker focus listeners together (#142258) fix(ui): keep menu hover colors consistent across themes (#142243) fix(release): keep changelog credits within verified history (#142261) fix: keep tool-finalizer placeholders private in message-only groups (#138645) perf(tui): carry prepared URL membership through rendering (#142262) test(ui): await activity cache imports before teardown (#142282) fix(qa): align auth and Workshop proofs with runtime contracts (#142280) feat(xai): use one curated catalog and concrete setup default (#142136) refactor(outbound): reuse prepared sendability facts (#142252) ...
Closes #142223
What Problem This Solves
Fixes an issue where users hovering Take photo, Photo, or File in the chat composer's + menu see a blue-gray highlight that differs from Skills and Connectors. The same mismatch affects neutral actions in other Control UI dropdowns and slash suggestions.
Why This Change Was Made
Both composer groups already use the same dropdown-item component. Only capability rows mapped its neutral fill to the platform's
--bg-hover. Move that mapping to the shared dropdown-item owner and remove redundant feature mappings. Apply the same token inside the browser card's shadow boundary and remove the slash menu's transparent blend.User Impact
Attachment actions, library retry, queued-message actions, account choices, workspace/gateway/branch/panel actions, file-editor choices, dashboard menus, group defaults, device/secret actions, usage menus, and automation run menus now follow the active theme's neutral hover color. Skills remains the visual reference.
Evidence
The main comparison shows Photo and the Skills reference in Absolutely dark and light. Click any image for its full size.
The remaining 19 menu surfaces are grouped below, one contact image per theme. Each row compares the same crop before (left) and after (right).
Other menus: Absolutely dark
Other menus: Absolutely light
8f314b8fe195f2628e8827de1b1b0cf409715fc0afterpnpm install --frozen-lockfile --prefer-offline; manifests and lockfile unchanged. The focused browser proof passed 80 tests in five files withOPENCLAW_VITEST_MAX_WORKERS=2.Focused test files:
menu-surface.browser.test.ts,web-awesome-dropdown.browser.test.ts,web-awesome-dropdown-owner.browser.test.ts,web-awesome-select.browser.test.ts, andselect-picker.browser.test.ts, usingui/vitest.config.tswithOPENCLAW_VITEST_MAX_WORKERS=2.rgb(47, 50, 63)rgb(48, 47, 43)rgb(228, 229, 233)rgb(237, 234, 224)The composer, workspace, slash, usage, and device captures use the full application with synthetic Gateway data. Other captures mount the actual production renderer with its owner styles and synthetic state. Before captures use the original styles; after captures use this branch. Contact images combine matching crops of the inspected originals without redrawing their content.
Diff cleanup and test-value audit: production remains +9/-11 before and after the pass. No unnecessary changes were found. Kept the rendered theme, shadow-root, keyboard/submenu, disabled and danger checks because they protect distinct behavior; original production failed 12 regression cases. No tests removed.
Review disposition (latest review updated September 8, 2026, 15:12:41 UTC): the sole before-merge item, marking the draft ready, is complete. No code findings or rank-up moves were listed; no items were skipped.
Hosted CI: exact-head run passed for
8f314b8fe195f2628e8827de1b1b0cf409715fc0; native prepare and merge completed with the same head.Risk and coverage
The shared mapping affects neutral dropdown hover, keyboard focus, and open-submenu fill. Focus/submenu lifecycle and disabled/destructive state tests passed. Menu geometry, actions, and selected-state styling are preserved. Production changes total +9/−11 lines; test/support changes total +210/−1.
Separate follow-ups: the searchable Settings picker and sticky composer Back row lack pointer highlight feedback; the browser card's popup panel retains its existing stock surface palette. Pinned-skill actions already used the correct hover token. This proof uses synthetic data and does not exercise live providers or native camera hardware.