Skip to content

experimental theme how: a clash with a see-through fill joins its text too; another look's text leaves it joined - #13411

Merged
josephfarina merged 3 commits into
feature/theme-editorfrom
c/how-clash-fill-text-fix
Nov 21, 2026
Merged

josephfarina merged 3 commits into
feature/theme-editorfrom
c/how-clash-fill-text-fix

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the review findings on #13375 (stacked directly on it; the two enter together).

User impact

With #13375 alone, two clash shapes still came out the old way:

  • A solid fill against a see-through one ("pressed checkboxes: a #0069d6 fill and a #0069d61a fill"). Said first, the solid fill got the separate text line; said second, it got no text color.
  • A clash on one look when the ask colors the text of another look ("primary buttons #0000ff, primary buttons #ffff00, secondary buttons white text"). The clash got the separate text line, and the #ffff00 choice got no text color.

Problem and solution fit

Decision

The rule the owner approved on #13375, applied to these shapes. No new rule.

Expected behavior and authority

In a clash, no line writes text for a fill the person has not picked. It is covered by theme-how-clash-fill-text.test.mjs. An ask that also colors the clashing look's text, or the whole part's, is answered as before (its own text line plus the first fill's readable-text line), and the release note says so.

Smallest restoration

The clash test and the text-color check. No setting, command or flag changes.

Evidence

  • "a #0069d6 fill and a #0069d61a fill", in both orders: the #0069d6 line runs the fill && its #ffffff text, the see-through line runs alone, and no separate text line is left.
  • "primary buttons #0000ff, primary buttons #ffff00, secondary buttons white text": both choices carry their text (#ffffff, #000000). The secondary buttons' white text stays its own answer.
  • Regression tests: three new cases in theme-how-clash-fill-text.test.mjs. They check both choices' lines (#0000ff … && … #ffffff, #ffff00 … && … #000000), and that a see-through line stays alone. All three fail on experimental theme how: a clashing fill's text color goes in that fill's choice #13375 and pass here.

Scope

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

CI=1 vitest run --project node packages/cli/api/theme-edit: 6,189 pass. The one failure, theme-build-names-pictures-removed, is an environment-only failure that fails the same on the base.

replay: worse 0 at e1b7462
preflight: pass e1b7462

…t too; another look's text color leaves it joined

Fixes the review findings on #13375.

[skip ci]
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 5:35pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 6:04 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 7b7f1c1

@astracat-bot astracat-bot Bot 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.

Changes requested: the code does what an engineering owner approved for this head, but the release note promises more than it does.

  • The release note (.changeset/experimental-theme-how-clash-fill-text.md:5) says an ask that colors the clashing look's own text keeps its own text and that no line writes text for a fill the person has not picked, but primary buttons #ffff00, primary buttons #0000ff, buttons white text still prints a separate color '#000000' line measured on #ffff00 only, so say that such an ask is answered as before (its own text line plus a separate readable-text line for the first fill said) and correct the description's "every line of a how answer writes something the ask asked for" to match.

Both new shapes now give one line per choice with its own text, and the three new tests fail on the base and pass here. Optional: the other-look test only checks that the separate line is gone, so also asserting the #ffffff and #000000 joins, and that the see-through line has no &&, would pin the rest of the claim. The fix is a new commit, so it needs a fresh /approve-spec from an engineering owner for that head.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Release note: each measurable clashing fill is measured in either order, and its readable text goes in that fill's own choice. Verified by the new tests and by both orders answered on the base and here.
  • Release note: see-through fills stay in the choice. Verified: such a line prints alone.
  • Release note: an ask that colors that look's text keeps its own text. False: a separate readable-text line, measured on the first fill only, still appears (blocking finding).
  • Release note: each choice prints as one line, so no line writes text for a fill not picked. True for the shapes the tests cover, false for the asks above.
  • Release note: a patch with the experimental tag. Verified.
  • Title: a clash with a see-through fill joins its text, and another look's text leaves it joined. Verified.
  • Description, before: a solid fill said before a see-through one got a separate text line, and said after it got no text. Verified on the base.
  • Description, before: a clash beside another look's text got a separate text line, and the yellow choice got no text. Verified on the base.
  • Description: a clash is any choice of one fill each on the same part and look; unmeasurable fills keep no text and the others get theirs in their own option. Verified.
  • Description: the said-text check looks at the clash's own look. Verified; a text color for the whole part still blocks the join.
  • Description: the earlier release note is narrowed to match. Partly: the new sentence over-claims (blocking finding).
  • Description: no new rule. An engineering owner approved this head.
  • Description: every line of a how answer writes something the ask asked for. False for asks that color the clashing look's own text.
  • Description evidence: the see-through ask in both orders joins white text to the blue line, prints the see-through line alone, and leaves no separate line. Verified.
  • Description evidence: the other-look ask gives both choices their text, and the secondary white text stays its own answer. Verified.
  • Description: the three new tests fail on the base and pass here. Verified.
  • Description: no setting, command or flag changes, and the scope checklist holds. Verified.
  • Description: the whole theme-edit test directory passes apart from one environment-only failure. Not repeated; every theme-how test file passes here.
  • File .changeset/experimental-theme-how-clash-fill-text.md: blocking finding (line 5).
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-clash-fill-text.test.mjs: clear, with a non-blocking note on what it asserts.

Automated review (maintainer link)

…text gets; tests check both choices' lines

[skip ci]
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec e1b7462

@astracat-bot astracat-bot Bot 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.

Approved pending CI: CI has not run on this head yet.

The release note now says what an ask that also colors the clashing look's or the whole part's text gets, and the tests check both choices' joined lines, so both points from the last review are addressed. The three new tests fail on the base and pass here, and the whole theme-edit test directory passes on this head. Optional: the see-through check at theme-how-clash-fill-text.test.mjs:69-70 passes even if the #0069d61a line is missing, so also asserting that the line exists would pin "see-through ones included in the choice".

Claims and files checked

Review mode: incremental; reason: none

  • Release note: each measurable clashing fill is measured in either order, see-through fills stay in the choice, and the readable text goes in that fill's own choice. Verified by the new tests and by both orders answered on the base and here.
  • Release note: each choice prints as one command line holding the fill and its text, so no line writes text for a fill not picked. Verified for the clashes it covers.
  • Release note: an ask that also colors that look's or the whole part's text is answered as before, with its own text line plus a readable-text line for the first fill. Verified: four such asks answer identically on the base and here.
  • Release note: a patch for the CLI with the experimental tag. Verified.
  • Title: a clash with a see-through fill joins its text, and another look's text leaves it joined. Verified.
  • Description, before: a solid fill said before a see-through one got a separate text line, and said after it got no text. Verified on the base.
  • Description, before: a clash beside another look's text got a separate text line, and the yellow choice got no text. Verified on the base.
  • Description: a clash is any choice of one fill each on the same part and look; unmeasurable fills keep no text and the others get theirs in their own option. Verified in the clash condition and by a transparent fill.
  • Description: the said-text check looks at the clash's own look. Verified; a text color for the whole part still sends the ask to the old answer, as the description says later.
  • Description: the earlier release note is narrowed to match. Verified.
  • Description: no new rule. An engineering owner approved this head.
  • Description: in a clash, no line writes text for a fill the person has not picked, and the tests cover it. Verified.
  • Description: an ask that also colors the clashing look's or the whole part's text is answered as before, and the release note says so. Verified.
  • Description: no setting, command or flag changes. Verified.
  • Description evidence: the see-through ask in both orders joins white text to the blue line, prints the see-through line alone, and leaves no separate line. Verified.
  • Description evidence: the other-look ask gives both choices their text, and the secondary white text stays its own answer. Verified.
  • Description: the three new tests check both choices' lines and that a see-through line stays alone, fail on the base and pass here. Verified, with the optional note above on the see-through check.
  • Description: the scope checklist holds. Verified.
  • Description: the theme-edit test directory passes apart from one environment-only failure. Verified: it passes here with no failure.
  • File .changeset/experimental-theme-how-clash-fill-text.md: clear.
  • File packages/cli/api/theme-edit/_how-question.mjs: clear.
  • File packages/cli/api/theme-edit/theme-how-clash-fill-text.test.mjs: clear, with a non-blocking note (lines 69-70).

Automated review (maintainer link)

Comment on lines +69 to +70
const clear = choice?.commands.find(c => /'#0069d61a'/.test(c)) ?? '';
expect(clear, q).not.toMatch(/&&/);

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.

Non-blocking: if the #0069d61a option dropped out of the choice, find(…) ?? '' gives '' and this assertion still passes, so nothing pins "see-through ones included in the choice". Also assert the line exists, for example expect(clear).toMatch(/background-color '#0069d61a'/), or that the choice has two commands as the plain-clash cases do.

@josephfarina
josephfarina changed the base branch from c/how-clash-fill-text to feature/theme-editor November 21, 2026 18:06
@josephfarina
josephfarina merged commit 73737c2 into feature/theme-editor Nov 21, 2026
9 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…t too; another look's text leaves it joined (#13411)

Reviewed pull request #13411, merged into the theme working branch with only its own changes (the layer below it, #13375, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #12787 experimental theme: a pressed or hovered part's flat tint is measured as the fill it is
- #13252 experimental theme: a one-color layer is a fill only where it covers the whole box
- #13300 experimental theme: a fill and its on-color set inside a part are measured as that part draws them
- #13321 experimental theme: a part's fill pair is measured though its on-color is set for the whole theme
- #13360 experimental theme: an on-color set on a part holding the readers leaves the fill pair out
- #12768 feat(cli): experimental theme editor show <theme> --on <part> gives what one part of a theme shows
- #13057 experimental theme pictures: sheet cells are never narrower than what they hold, and a panel over the page is drawn at its cell's full width
- #13200 experimental theme pictures: a change removes the pictures cut from a tall one
- #13199 experimental theme pictures: the pages section draws the sample app whole, cut between pages and named
- #13320 fix(cli): corners said before their edge run after it, so the whole answer does both
- #13375 experimental theme how: a clashing fill's text color goes in that fill's choice
- #13411 experimental theme how: a clash with a see-through fill joins its text too; another look's text leaves it joined
- #13420 fix(cli): experimental theme editor - glossy writes no sample gradient
- #13452 test(cli): the said-order test reads a named corner as that corner
- #13262 fix(cli): experimental theme editor - an ask that starts with clear the and names only removable looks takes them away
- #13450 fix(cli): experimental theme editor - a bar's text token is checked in the menus its items open
- #13442 feat(cli): a light neutral also fills the page, surface and card backgrounds in light mode
- #13477 docs(changeset): the clear reading takes looks away for one part
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13470.

@github-actions
github-actions Bot deleted the c/how-clash-fill-text-fix branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — e1b74628 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant