Skip to content

CS-11328: robust primary BoxelButton focus ring; darken with the fill#5116

Merged
lukemelia merged 1 commit into
mainfrom
cs-11328-primary-button-focus-ring
Jun 5, 2026
Merged

CS-11328: robust primary BoxelButton focus ring; darken with the fill#5116
lukemelia merged 1 commit into
mainfrom
cs-11328-primary-button-focus-ring

Conversation

@lukemelia
Copy link
Copy Markdown
Contributor

CS-11328. The primary button's :focus-visible set only outline-color, relying on the UA default outline-style. Set the full outline shorthand (2px solid via --boxel-outline-*) so the ring renders reliably, 2px outside the button, and darken it to --boxel-highlight-hover when the fill darkens on hover/active. The selection-menu's now-redundant local focus-ring override is removed (the base button covers it); its open-state ring-darken is kept.

Note: the :focus-visible change is on the shared BoxelButton, so every button's keyboard focus ring is now explicitly 2px solid rather than the browser default — intended (the design-system --boxel-outline).

Third of three PRs split out of #5105. Stacked on CS-11327 (which is on CS-11326) — merge those first.

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

Preview deployments

Host Test Results

    1 files      1 suites   1h 50m 56s ⏱️
2 936 tests 2 921 ✅ 15 💤 0 ❌
2 955 runs  2 940 ✅ 15 💤 0 ❌

Results for commit 1a4bd34.

Realm Server Test Results

    1 files  ±0      1 suites  ±0   13m 17s ⏱️ + 1m 36s
1 559 tests ±0  1 558 ✅ ±0  1 💤 ±0  0 ❌ ±0 
1 650 runs  ±0  1 649 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit 1a4bd34. ± Comparison against earlier commit d83110b.

@lukemelia lukemelia force-pushed the cs-11327-selection-trigger-sizing branch from 7f18293 to 1a28f7d Compare June 4, 2026 23:15
@lukemelia lukemelia force-pushed the cs-11328-primary-button-focus-ring branch 2 times, most recently from eb313f7 to d83110b Compare June 5, 2026 02:18
CS-11328. The highlight (primary) selection-menu trigger drew its focus ring
in --boxel-highlight — the same color as its fill — so it was invisible. (And
boxel-ui's unlayered global `button:focus` rule overrides BoxelButton's own
layered focus styles, so a fix on the button component wouldn't take.) Set the
ring at the component level: a lighter-but-saturated tint of the current fill
(color-mix 70% fill / 30% white), sitting snug 1px outside — matching Burcu's
mockup. It stays visible against the highlight and tracks the fill as it
darkens when the menu opens. Verified live in the CardHeader and chooser.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lukemelia lukemelia force-pushed the cs-11328-primary-button-focus-ring branch from d83110b to 1a4bd34 Compare June 5, 2026 03:05
@lukemelia lukemelia marked this pull request as ready for review June 5, 2026 03:21
@lukemelia lukemelia requested review from a team and burieberry June 5, 2026 03:21
@lukemelia lukemelia changed the base branch from cs-11327-selection-trigger-sizing to main June 5, 2026 20:24
@lukemelia lukemelia merged commit 8dde159 into main Jun 5, 2026
88 of 102 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants