Skip to content

fix: let rich playground choices take the author's columns again - #4512

Merged
max-sixty merged 2 commits into
mainfrom
visual-language-candidates
Oct 27, 2026
Merged

max-sixty merged 2 commits into
mainfrom
visual-language-candidates

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Since #4381 removed :scope from the style query in packages/playground/widgets.css, a rich choice group (.lf-playground-candidates) ignored --playground-choice-columns: the query's selector named only lf-playground-control > .lf-playground-choices, which weighs less than the rich default grid, so an author who set two columns on a candidates row still got the auto-fit layout. The query now names the rich control's class too, which ties the default's specificity, and the later rule wins.

test_plain_choices_wrap_between_whole_labels_until_the_author_sets_columns gains a rich group whose author asks for one column at 60rem; it fails on main and passes here.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 2 commits October 27, 2026 10:35
#4381 dropped the `:scope` that gave the `--playground-choice-columns` style
query its weight, so for rich choices the package's own responsive grid
(`.lf-playground-candidates > .lf-playground-choices`, two classes) outranked
the author's columns. Naming the rich control's class in the query's selector
weighs the same and comes later. The choice-arrangement test now covers a rich
group stacked into one column.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit 22d8c11 into main Oct 27, 2026
4 checks passed
@max-sixty
max-sixty deleted the visual-language-candidates branch October 27, 2026 21:34
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.

2 participants