Skip to content

fix(ui): keep menu hover colors consistent across themes - #142243

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
fix/ui-menu-hover-consistency
Sep 8, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
fix/ui-menu-hover-consistency

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

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.

Item / themeBeforeAfter
Photo hover / darkbefore: Photo hover, Absolutely darkafter: Photo hover, Absolutely dark
Skills hover (platform reference) / darkbefore: Skills hover (platform reference), Absolutely darkafter: Skills hover (platform reference), Absolutely dark
Photo hover / lightbefore: Photo hover, Absolutely lightafter: Photo hover, Absolutely light
Skills hover (platform reference) / lightbefore: Skills hover (platform reference), Absolutely lightafter: Skills hover (platform reference), Absolutely light

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

BeforeAfter
Dark theme: 19 other menu comparisons, before on the left and after on the right

Other menus: Absolutely light

BeforeAfter
Light theme: 19 other menu comparisons, before on the left and after on the right
  • 80 focused browser tests passed across five files after the frozen-lockfile dependency refresh. Regression coverage exercises attachment versus Skills hover, library actions, browser-card shadow menus, slash suggestions, keyboard focus, submenu state, disabled rows, and destructive rows. The corrected setup preserves native browser custom states; the original production styles produced 12 expected failures.
  • 42 inspected before/after pairs at 1440 × 900 cover dark and light modes. Every after capture matches the platform hover token. In the 28 isolated-menu pairs, all changed pixels lie within the hovered row.
  • Actual composer flow: Take photo, Photo, and File open the corresponding input and show a removable synthetic attachment; Skills and Connectors open their views and return; Manage plugins navigates to Settings. Disabled Web search remains disabled.
  • Changed-file checks: passed on 8f314b8fe195f2628e8827de1b1b0cf409715fc0 after pnpm install --frozen-lockfile --prefer-offline; manifests and lockfile unchanged. The focused browser proof passed 80 tests in five files with OPENCLAW_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, and select-picker.browser.test.ts, using ui/vitest.config.ts with OPENCLAW_VITEST_MAX_WORKERS=2.

Theme Photo before Skills reference / corrected after
Absolutely dark rgb(47, 50, 63) rgb(48, 47, 43)
Absolutely light 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.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 8, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 8, 2026, 11:11 AM ET / 15:11 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 8f314b8fe195f2628e8827de1b1b0cf409715fc0

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with convincing visual proof and meaningful browser assertions; draft status does not reduce its quality rating.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected full-application screenshots show the shared dropdown styling correcting Photo hover to match Skills in Absolutely dark with synthetic Gateway data. This directly proves the central visual change; broader light-theme and menu coverage is reported in the captured body, with browser tests supplemental.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected full-application screenshots show the shared dropdown styling correcting Photo hover to match Skills in Absolutely dark with synthetic Gateway data. This directly proves the central visual change; broader light-theme and menu coverage is reported in the captured body, with browser tests supplemental.
Evidence reviewed 8 items Introduced patch verified: The local merge-base-to-head diff matches the supplied complete introduced patch. Production changes are confined to menu colors; the remaining changes exercise browser behavior and preserve native ElementInternals in browser tests.
Still needed on main: Fetched main’s shared dropdown-item rule sets the cursor but does not map the neutral fill to the platform hover color.
Latest release comparison: The supplied latest release also lacks the shared neutral-fill mapping; there is no basis to classify this PR as already shipped.
Findings None None.
Security None None.

How this fits together

The 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
Loading

Before merge

  • Complete next step (P2) - Mark the draft ready for review before landing.
Agent review details

Security

None.

PR surface

Source -2, Tests +209. Total +207 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 5 9 11 -2
Tests 2 210 1 +209
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 219 12 +207

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #142223
Summary: This PR is the explicit implementation candidate for the paired open hover-color issue.

Members:

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

Technical review

Best 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.

Labels

Label justifications:

  • P3: This repairs visual menu consistency while attachment selection and other actions remain available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected full-application screenshots show the shared dropdown styling correcting Photo hover to match Skills in Absolutely dark with synthetic Gateway data. This directly proves the central visual change; broader light-theme and menu coverage is reported in the captured body, with browser tests supplemental.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected full-application screenshots show the shared dropdown styling correcting Photo hover to match Skills in Absolutely dark with synthetic Gateway data. This directly proves the central visual change; broader light-theme and menu coverage is reported in the captured body, with browser tests supplemental.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected full-application screenshots show the shared dropdown styling correcting Photo hover to match Skills in Absolutely dark with synthetic Gateway data. This directly proves the central visual change; broader light-theme and menu coverage is reported in the captured body, with browser tests supplemental.

Evidence

What I checked:

  • Introduced patch verified: The local merge-base-to-head diff matches the supplied complete introduced patch. Production changes are confined to menu colors; the remaining changes exercise browser behavior and preserve native ElementInternals in browser tests. (ui/src/styles/base.css:888, 8f314b8fe195)
  • Still needed on main: Fetched main’s shared dropdown-item rule sets the cursor but does not map the neutral fill to the platform hover color. (ui/src/styles/base.css:886, ab24c12337b5)
  • Latest release comparison: The supplied latest release also lacks the shared neutral-fill mapping; there is no basis to classify this PR as already shipped. (ui/src/styles/base.css:886, 1391f7cd2d40)
  • Inspected visual proof: Inspected all four images prepared in the media manifest: dark-theme Photo before/after and Skills before/after. Photo’s blue-gray highlight becomes the warm neutral highlight already used by Skills. The captured body identifies a full application using synthetic Gateway data and branch styles. Light-theme and other-menu images were linked in the body but were not among the prepared local artifacts; those broader claims were not independently visually verified. (8f314b8fe195)
  • Dependency styling contract: The published @awesome.me/webawesome 3.12.0 package identifies this repository as its owner. Its dropdown-item stylesheet uses the neutral fill for hover, focus-visible, and open submenus, excludes disabled neutral hover, and uses separate danger tokens. The dependency signal is the PR’s direct use of these CSS properties and browser component imports. Inspected package/dist/chunks/chunk.YCTNB6J5.js in memory without executing or extracting package code.
  • Browser regression coverage: The new assertions inspect computed colors through actual production renderers in both modes, including the shadow-root boundary and disabled/destructive states. The captured body reports 80 focused browser tests passing and 12 expected failures with original production styles. Tests were inspected, not executed during this read-only review. (ui/src/components/menu-surface.browser.test.ts:247, 8f314b8fe195)

Likely related people:

  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-08T14:51:06.019Z sha 8f314b8 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T15:04:37.757Z sha 8f314b8 :: needs changes before merge. :: none

@clawsweeper

clawsweeper Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vyctorbrzezowski
vyctorbrzezowski merged commit 7e2241a into main Sep 8, 2026
211 of 212 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the fix/ui-menu-hover-consistency branch September 8, 2026 15:56
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 8, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Control UI menu items use inconsistent hover colors across themes

1 participant