Skip to content

fix(ui): standardize scrollbar styling across the Control UI - #124285

Merged
vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/scrollbar-standardization
Aug 15, 2026
Merged

vyctorbrzezowski merged 2 commits into
mainfrom
brzezowski/scrollbar-standardization

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The Control UI has no canonical scrollbar. Each scroll surface currently picks its own width and thumb color through one of three separate mechanisms (document ::-webkit-scrollbar rules, per-component scrollbar-width/scrollbar-color, and shadow-DOM surfaces that no document rule reaches at all), producing at least five visually distinct scrollbars in a single window. The loudest sits on a popover: opening the chat model picker paints a wide, high-contrast thumb directly over the menu.

The structural root cause: base.css read var(--scrollbar-size, 12px), but --scrollbar-size was never defined in the token layer — it existed only as three ad-hoc local overrides (layout.css, new-session.css). Everything downstream compensated with its own recipe: four different thumb colors and three different widths across base.css, layout.css, chat/layout.css, chat/split-view.css, and new-session.css.

A third, invisible variant sat underneath all of that: document-level ::-webkit-scrollbar rules do not cross a shadow boundary, so Web Awesome menus and listboxes (the settings model picker, the model-setup provider dropdown, the composer capability menu, and others) rendered the raw platform scrollbar no matter what base.css said.

Why This Change Was Made

One canonical definition, expressed through the existing theme tokens:

  • --scrollbar-size (12px), --scrollbar-thumb-inset (3px), --scrollbar-thumb, and --scrollbar-thumb-hover are added to the main :root token block, derived from --muted with color-mix() — the same idiom already used for --link/--link-hover and --focus-ring. Because every theme family already redefines --muted, this one definition covers all six themes in both light and dark with no hand-written color pair.
  • The visible thumb reads as 6px through a transparent border with background-clip: content-box, while the hit target stays a full 12px. This refines rather than reverses the earlier decision behind [Bug]: Make Control UI scrollbars contextual and app chrome non-selectable #107313 (a usable drag target on main content): one profile now delivers a full-size hit target with a thin, quiet thumb instead of the previous 12px-main/6px-sidebar split with a solid, heavy fill. The same applies to the other surfaces that bought thinness by shrinking their hit target — the settings sidebar, the session sidebar, the new-session composer, and the composer capability menu all keep a 6px-wide painted thumb while their grab area grows to the canonical 12px.
  • Track and corner are explicitly transparent in every rule, on both engines — Chromium's ::-webkit-scrollbar-track/-corner and Firefox's scrollbar-color track component. Nothing paints a visible track anywhere; only the thumb renders.
  • Firefox gets the same thin profile and muted rest color through scrollbar-width: thin and inherited scrollbar-color, but no hover step — Firefox has no thumb-level hover hook, and a container-hover rule would repaint every nested scroller on the page because scrollbar-color inherits. This is a deliberate, accepted degradation: same tokens, one fewer state.
  • Sixteen per-surface overrides across base.css, layout.css, chat/layout.css, chat/split-view.css, and new-session.css are deleted in the same change. The two categories that intentionally remain — hidden horizontal rails (board-tabs__track, the dreams day-chips, the panel tab strip) and scrollbar-gutter layout reservations — are untouched and covered by a regression test.
  • Shadow-DOM parity ships in this same change, not deferred: a grouped rule in base.css reaches every Web Awesome scroll part through the generic wa-dropdown::part(menu), wa-select::part(listbox), and wa-popover::part(body) selectors — the same generic host group the shared corner treatment already uses, so a dropdown added tomorrow is covered without touching this rule — and a shared Lit css fragment (ui/src/lit/scrollbar-styles.ts) covers the terminal, browser, and desktop panels' own shadow roots, since neither ::-webkit-scrollbar* rules nor scrollbar-width cross a shadow boundary on their own. Verified live: without the grouped rule, a shadow listbox's scrollbar thumb resolves to fully transparent and its width falls back to the platform default; with it, both resolve to the canonical token values.

User Impact

Every Control UI surface with a scroll container — chat, settings, logs, activity, tables, dialogs, the command palette, native dropdowns, and the terminal/browser/desktop panels — now shares one thin, muted-at-rest, hover-emphasized scrollbar in both light and dark mode. The model picker, previously the most visible offender, now matches every other surface instead of standing out with a heavy, high-contrast bar.

Evidence

Before/after screenshots, dark and light, captured through the mocked Gateway dev harness:

The shadow-DOM lane (settings model picker, a wa-select listbox) was verified live with a getComputedStyle probe on the shadow part rather than a static screenshot, because the mock fixture's option list doesn't overflow that particular listbox: before the grouped ::part() rule, its scrollbar-thumb resolved to fully transparent and its width fell back to the platform default; after, both resolve to the canonical token values (12px, the muted thumb color).

Tests:

  • ui/src/e2e/app-chrome-interaction.e2e.test.ts — renamed and collapsed the old 12px/6px contract to one canonical width, added the model picker to the sampled surfaces, and added a dark/light pass that asserts the token-derived thumb color differs between modes and that a Web Awesome shadow-DOM menu's ::part() scrollbar resolves to the canonical width and a real thumb color. A genericity guard walks every wa-dropdown/wa-select/wa-popover rendered on the chat page and asserts each one's scroll part reports the canonical width, so an unlisted component cannot silently fall back to the platform scrollbar.
  • ui/src/e2e/new-session-page.prompt-attachments.e2e.test.ts — the composer's ten-line cap test asserted thinness as ::-webkit-scrollbar width <= 6px, which was the old shrink-the-hit-target recipe. It now asserts the canonical contract directly: a 12px hit target painting a 6px thumb through the transparent border.
  • ui/src/components/form-controls.browser.test.ts — collapsed the same 12px/6px contract and added a check that the intentionally hidden .board-tabs__track rail still reports scrollbar-width: none against the new blanket * { scrollbar-width: thin } rule.

Production line delta is +30 (git diff --numstat on the non-test files: +97/-67); tests are +141 (+150/-9). Deleting the scattered overrides removes 45 lines across layout.css, chat/layout.css, chat/split-view.css, and new-session.css; the canonical token/rule block in base.css nets +30 (it now also covers the shadow-DOM ::part() group, including a full hover pass that the deleted rules never had); and the new Lit fragment plus its three-panel wiring for the terminal/browser/desktop shadow roots adds +45. The shadow-DOM lane — previously zero scrollbar styling on those surfaces — accounts for essentially all of the net addition; it is new coverage, not a rewritten existing rule. Reaching the Web Awesome parts through generic selectors rather than a per-component class list is what keeps that block small: it removed 23 production lines while widening coverage from seven named hosts to every dropdown, listbox, and popover in the UI.

Fixes #124272

Give the Control UI one canonical scrollbar definition (a 12px hit
target with a thin, muted-at-rest, 6px painted thumb, derived from
--muted so every theme family and both modes follow with no override)
and delete the sixteen scattered per-surface overrides that used to
make every scroll container look different.

Shadow-DOM parity ships in the same change: a grouped ::part() rule
covers Web Awesome menus/listboxes, and a shared Lit fragment covers
the terminal/browser/desktop panels' own shadow roots, since neither
::-webkit-scrollbar* rules nor scrollbar-width cross a shadow
boundary on their own.

Fixes #124272
@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vyctorbrzezowski vyctorbrzezowski self-assigned this Aug 15, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 15, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review August 15, 2026 21:10
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 5:38 PM ET / 21:38 UTC.

ClawSweeper review

What this changes

The PR replaces per-surface Control UI scrollbar rules with shared theme tokens and a consistent thin-painted, full-hit-target profile across document, Web Awesome, and Lit shadow-root surfaces.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this member-authored, maintainer-labeled PR open. The prior Web Awesome coverage finding was addressed, but the intentionally changed scrollbar default still needs maintainer product acceptance and exact-head validation.

Priority: P3
Reviewed head: dae8016a33fbd83161824eea482baa7586d27f68
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The direction and test intent are useful, but confidence is limited by unavailable exact-head source and visual artifacts.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so external-contributor proof gating does not apply; prepared screenshot artifacts were nevertheless unavailable for independent inspection.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so external-contributor proof gating does not apply; prepared screenshot artifacts were nevertheless unavailable for independent inspection.
Evidence reviewed 8 items Current behavior remains inconsistent: Current main still defines a 12px fallback and opaque document thumb, while individual chat and sidebar surfaces supply distinct widths and colors.
Shadow-root gap on current main: The shared Lit scrollbar fragment is absent on current main, and the terminal, browser, and desktop panels currently compose only their local styles.
Existing tests encode the old split: Current tests assert 12px document content and 6px sidebar/composer scrollbar widths, so the branch correctly needs to update the existing behavior contract rather than add parallel coverage.
Findings None None.
Security None None.

How this fits together

Control UI combines shared document CSS with Web Awesome menu parts and Lit shadow-root panels. Theme tokens flow into those surfaces to determine scrollbar dimensions and colors before the browser renders each scroll container.

flowchart LR
A[Theme tokens] --> B[Shared document CSS]
A --> C[Web Awesome menu parts]
A --> D[Lit shadow-root panels]
B --> E[Chat and settings scrollers]
C --> F[Dropdowns and listboxes]
D --> G[Terminal browser and desktop panels]
E --> H[Rendered scrollbar profile]
F --> H
G --> H
Loading

Decision needed

Question Recommendation
Should dense sidebars and shadow-root panels adopt the same 12px scrollbar hit target as document content while retaining a 6px painted thumb? Adopt the unified profile: Approve the 12px hit target and 6px painted thumb as the default across Control UI scroll surfaces.

Why: Current main intentionally distinguishes compact sidebars from document content, so source evidence cannot decide whether the broader default is the desired interaction design.

Before merge

  • Resolve merge risk (P1) - This changes a deliberately shipped contextual 12px-content/6px-sidebar default for existing Control UI users; maintainers should explicitly accept the uniform 12px hit target before merge.
  • Resolve merge risk (P1) - The exact PR head and its submitted screenshots could not be independently inspected in this environment because the partial clone needed an unavailable network fetch and the prepared media artifacts are expired.
  • Complete next step (P2) - A maintainer must choose the new global scrollbar default before this member-authored PR can be judged ready to land.
Agent review details

Security

None.

PR surface

Source +30, Tests +141. Total +171 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 9 97 67 +30
Tests 3 150 9 +141
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 247 76 +171

Review metrics

Metric Value Why it matters
Production versus test LOC production +30, tests +141 The production growth is attributed to previously unstyled shadow-root coverage, while the tests replace the old contextual-width contract with the new shared profile.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #124272
Summary: This PR is the candidate implementation for the open canonical scrollbar-standardization request.

Members:

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

Merge-risk options

Maintainer options:

  1. Confirm the unified default (recommended)
    Explicitly accept the changed scrollbar hit-target default for existing Control UI users after reviewing the exact-head visual evidence.
  2. Preserve compact sidebars
    Pause this direction and retain the existing contextual sidebar width if the larger hit target is not desired in dense chrome.

Technical review

Best possible solution:

Confirm one canonical 12px hit target with a 6px painted thumb as the Control UI default, then land only after exact-head UI validation confirms the generic Web Awesome and Lit shadow-root coverage.

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

No high-confidence live current-main run was established; current CSS and tests source-prove the divergent scrollbar profiles, but the reviewer could not execute the UI harness.

Is this the best way to solve the issue?

Unclear; the consolidation and generic part selectors are coherent, but replacing the prior contextual sizing is a product decision rather than a purely mechanical repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 50df307fab6d.

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The branch deliberately changes the shipped default scrollbar sizing behavior across existing Control UI surfaces.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so external-contributor proof gating does not apply; prepared screenshot artifacts were nevertheless unavailable for independent inspection.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove proof: 📸 screenshot: Current real behavior proof evidence kind is not_applicable.

Label justifications:

  • P3: This is a visible Control UI consistency improvement without evidence of lost data, failed delivery, or runtime unavailability.
  • merge-risk: 🚨 compatibility: The branch deliberately changes the shipped default scrollbar sizing behavior across existing Control UI surfaces.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so external-contributor proof gating does not apply; prepared screenshot artifacts were nevertheless unavailable for independent inspection.

Evidence

What I checked:

  • Current behavior remains inconsistent: Current main still defines a 12px fallback and opaque document thumb, while individual chat and sidebar surfaces supply distinct widths and colors. (ui/src/styles/base.css:1105, 50df307fab6d)
  • Shadow-root gap on current main: The shared Lit scrollbar fragment is absent on current main, and the terminal, browser, and desktop panels currently compose only their local styles. (ui/src/components/terminal/terminal-panel.ts:419, 50df307fab6d)
  • Existing tests encode the old split: Current tests assert 12px document content and 6px sidebar/composer scrollbar widths, so the branch correctly needs to update the existing behavior contract rather than add parallel coverage. (ui/src/components/form-controls.browser.test.ts:596, 50df307fab6d)
  • History provenance: The current contextual scrollbar design appears to date to the UI change titled “fix(ui): make scrollbars contextual,” which is the relevant predecessor for the intentional 12px/6px split. (ui/src/styles/base.css:1105, e052d122d6ac)
  • Canonical work relationship: The open feature issue is the canonical request, and this PR explicitly presents itself as its candidate implementation; no current-main equivalent was found. (ui/src/lit/scrollbar-styles.ts:1, dae8016a33fb)
  • Dependency signal and inspection gap: The UI directly depends on @awesome.me/webawesome 3.10.0 and this PR styles its exported parts; the read-only checkout has no node_modules, so the dependency declarations could not be independently re-read locally. (ui/package.json:12, 50df307fab6d)

Likely related people:

  • steipete: Commit e052d12 introduced the current contextual scrollbar design retained in the affected base, layout, chat, and interaction-test surfaces. (role: introduced current scrollbar behavior; confidence: high; commits: e052d122d6ac; files: ui/src/styles/base.css, ui/src/styles/layout.css, ui/src/styles/chat/layout.css)
  • vyctorbrzezowski: Recent merged Control UI token work touched the same shared base stylesheet, independently connecting this contributor to the current styling owner surface. (role: recent area contributor; confidence: medium; commits: 292506566bc6; files: ui/src/styles/base.css)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Re-upload redacted before/after screenshots or a short recording from the current head so the visual default change can be independently checked.

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 (1 earlier review cycle)
  • reviewed 2026-08-15T21:18:07.800Z sha bb371b5 :: found issues before merge. :: [P2] Cover all Web Awesome scroll parts

The canonical scrollbar group enumerated six menu hosts plus the settings
select, so every unlisted Web Awesome surface kept the raw platform
scrollbar: a Chromium probe against the previous stylesheet reports
width:auto and a fully transparent thumb for wa-dropdown::part(menu),
wa-select::part(listbox), and wa-popover::part(body).

Style the three generic part families instead -- the same host group the
shared corner treatment already uses at base.css:435 -- which covers every
dropdown, listbox, and popover in the UI and removes 23 production lines.

The new-session composer's ten-line cap test asserted thinness as a
<=6px hit target, which was the old shrink-the-target recipe the canonical
profile replaces. It now asserts the real contract: a 12px hit target
painting a 6px thumb through the transparent border. The chat-page e2e
gains a genericity guard that walks every wa-dropdown/wa-select/wa-popover
on the page and requires each scroll part to report the canonical width,
so an unlisted component cannot silently regress.
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Addressed the review finding and a sibling regression CI caught, in dae8016.

[P2] Cover all Web Awesome scroll parts — confirmed real, now fixed. The group enumerated six menu hosts plus wa-select.settings-select, and the UI has roughly twenty ::part(menu)/::part(listbox) surfaces, so workboard-select::part(listbox) was one of many left on the platform scrollbar. Replaced the class allowlist with the generic part families — wa-dropdown::part(menu), wa-select::part(listbox), wa-popover::part(body) — matching the generic host group the shared corner treatment already uses at ui/src/styles/base.css:435. Part names verified against the dependency rather than assumed: @awesome.me/webawesome types declare @csspart menu (dropdown), @csspart listbox (select), and @csspart body (popover).

Before/after probe in real Chromium, loading each stylesheet revision and reading computed styles off the shadow parts:

Surface Previous head bb371b5 Now dae8016
wa-dropdown::part(menu) width: auto, thumb rgba(0, 0, 0, 0) width: 12px, 3px inset, painted thumb
wa-select::part(listbox) width: auto, thumb rgba(0, 0, 0, 0) width: 12px, 3px inset, painted thumb
wa-popover::part(body) width: auto, thumb rgba(0, 0, 0, 0) width: 12px, 3px inset, painted thumb

The repair also shrinks the change: production delta drops from +53 to +30 (+97/-67), because three generic selectors replace four repetitions of a seven-host group. Tests are +141.

Sibling regression that CI caught. checks-ui-e2e (11/12) failed on bb371b5 at new-session-page.prompt-attachments.e2e.test.ts:120 with expected 12 to be less than or equal to 6. That assertion is from #113842 and encoded thinness as a <= 6px hit target — the shrink-the-target recipe this PR replaces. It now asserts the canonical contract directly: a 12px hit target painting a 6px thumb through the transparent border, which is strictly more specific than the bound it replaces. The composer's visible thumb is unchanged at 6px; only its grab area grows.

Rank-up moves. Both applied. The named allowlist is gone, and the chat-page e2e now walks every wa-dropdown/wa-select/wa-popover rendered on the page and requires each scroll part to report the canonical width, so an unlisted component cannot regress silently.

On the merge-risk question: the unified profile is the intended direction, and #124272 states it explicitly — one profile that keeps a full-size hit target while painting a thin thumb, rather than walking back the #107313 hit-target decision.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Aug 15, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Re-review is clean on the code — no actionable findings at dae8016, and the surface metric now reads source +30 / tests +141. Closing out the three remaining before-merge items rather than merging past them:

Uniform 12px hit target (P1, and the P2 "choose the new global default"). Accepted, and it is the direction #124272 asked for rather than a new choice made in this PR: "the 12px main / 6px sidebar split was a deliberate decision from #107313 ... This request does not walk that back. It asks for one profile that keeps a full-size hit target while painting a thin thumb." That is exactly what ships here — every surface keeps a 12px grab area and paints a 6px thumb through a transparent border, so the 6px surfaces (session sidebar, settings sidebar, new-session composer, capability menu) look the same as before and become easier to grab, while the heavy 12px document thumb gets quieter. Nothing regresses to a wider visible bar.

Exact-head source and media could not be fetched (P1). That is an environment limitation on the review side, not a gap in the change. The head is dae8016, and exact-head CI is green across all 173 checks including all twelve checks-ui-e2e shards and checks-ui-e2e-real-gateway.

Rank-up move — re-upload screenshots from the current head. Skipping, and noting why: the follow-up commit changed only which surfaces the rule reaches (unlisted Web Awesome dropdowns, listboxes, and popovers, which previously rendered the platform scrollbar), not the profile itself. The linked before/after captures of the model picker and the transcript/sidebar still show the exact visual result those surfaces have at this head. The newly covered surfaces are proven by computed-style assertions instead, which is the stronger check for "did this part get styled at all" — a screenshot of a menu whose fixture list does not overflow would show nothing either way.

@vyctorbrzezowski
vyctorbrzezowski merged commit f4910cb into main Aug 15, 2026
182 of 183 checks passed
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/scrollbar-standardization branch August 15, 2026 21:41
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
…w#124285)

* fix(ui): standardize scrollbar styling across the Control UI

Give the Control UI one canonical scrollbar definition (a 12px hit
target with a thin, muted-at-rest, 6px painted thumb, derived from
--muted so every theme family and both modes follow with no override)
and delete the sixteen scattered per-surface overrides that used to
make every scroll container look different.

Shadow-DOM parity ships in the same change: a grouped ::part() rule
covers Web Awesome menus/listboxes, and a shared Lit fragment covers
the terminal/browser/desktop panels' own shadow roots, since neither
::-webkit-scrollbar* rules nor scrollbar-width cross a shadow
boundary on their own.

Fixes openclaw#124272

* fix(ui): reach every Web Awesome scroll part through generic selectors

The canonical scrollbar group enumerated six menu hosts plus the settings
select, so every unlisted Web Awesome surface kept the raw platform
scrollbar: a Chromium probe against the previous stylesheet reports
width:auto and a fully transparent thumb for wa-dropdown::part(menu),
wa-select::part(listbox), and wa-popover::part(body).

Style the three generic part families instead -- the same host group the
shared corner treatment already uses at base.css:435 -- which covers every
dropdown, listbox, and popover in the UI and removes 23 production lines.

The new-session composer's ten-line cap test asserted thinness as a
<=6px hit target, which was the old shrink-the-target recipe the canonical
profile replaces. It now asserts the real contract: a 12px hit target
painting a 6px thumb through the transparent border. The chat-page e2e
gains a genericity guard that walks every wa-dropdown/wa-select/wa-popover
on the page and requires each scroll part to report the canonical width,
so an unlisted component cannot silently regress.
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 merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

[Feature]: Standardize scrollbar styling across the Control UI

1 participant