Skip to content

Fix card-selection border weight in the card chooser (CS-11329)#5117

Merged
lukemelia merged 1 commit into
mainfrom
cs-11329-selection-ring
Jun 5, 2026
Merged

Fix card-selection border weight in the card chooser (CS-11329)#5117
lukemelia merged 1 commit into
mainfrom
cs-11329-selection-ring

Conversation

@lukemelia

Copy link
Copy Markdown
Contributor

Resolves CS-11329. Split out of #5111.

In the card chooser, a selected item showed only the thin 1px button border — the intended teal ring relied on AdornContext's :deep(.adorn-stroke.selected) rule, which the portaled catalog item didn't pick up (computed box-shadow on a selected item was rgba(0,0,0,0) 0 0 0 0).

Fix: define the ring directly on .catalog-item.adorn.selected — a 4px --boxel-highlight ring, darkening to --boxel-highlight-hover on hover — so it stays full-weight whether or not the item is hovered. (Operator-mode overlays already rendered a correct 4px ring, so this is scoped to the chooser/search item-button.)

Base: main. First of a 4-PR split of #5111.

🤖 Generated with Claude Code

In the card chooser, a selected item showed only the thin 1px button
border — the intended teal ring never applied because it relied on
AdornContext's :deep stroke rule, which the portaled catalog item didn't
pick up. Define the ring directly on `.catalog-item.adorn.selected`: a
full-weight 4px `--boxel-highlight` ring, darkening to
`--boxel-highlight-hover` on hover, so it stays full-weight whether or
not the item is hovered.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

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

Results for commit aed874d.

Realm Server Test Results

    1 files      1 suites   12m 37s ⏱️
1 559 tests 1 558 ✅ 1 💤 0 ❌
1 650 runs  1 649 ✅ 1 💤 0 ❌

Results for commit aed874d.

@lukemelia lukemelia marked this pull request as ready for review June 5, 2026 02:21
@lukemelia lukemelia requested review from a team and burieberry June 5, 2026 02:22

@burieberry burieberry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't 4px a bit thick? I remember this as 2px but not a huge deal

@lukemelia lukemelia merged commit a7c9e7a into main Jun 5, 2026
127 of 130 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