Repository navigation
fix(cli): variant and state gradients keep the part's background longhands - #12514
josephfarina wants to merge 11 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
0c3b97e to
90be9bc
Compare
0616666 to
0d82590
Compare
0d82590 to
9ce43cf
Compare
90be9bc to
6c65255
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, because no current record says how the experimental theme editor writes a gradient set for a variant, a state or a mode. An owner needs to approve or amend the two behaviours this pull request adds: those gradients become background-image plus only the longhands their layers name (so whole-part background longhands and the part's own fill now show under them), and a result note now names a whole-part longhand that a scoped shorthand resets. An engineering owner records the decision by commenting /approve-spec 6c6525598aa0af83e6f5e5a536098e1d5d5ebda0 on this pull request, and the author may do so as an engineering owner. These need fixing either way:
- A one-mode text color now skips every variant that has a gradient, because
packages/cli/api/theme-edit/_settings.mjs:6488checksbackground-imagefor every color family: afterset background linear-gradient(#ffffff, #e6e6e6) --on button --when variant:secondaryandset color #ff0000 --on button --mode dark, secondary buttons keep Core's dark text color, and the result wrongly blames their background image. - A background longhand set in the same scope before a
background-imagegradient is now silently dropped, because_settings.mjs:6415-6418clears position, size and repeat for that longhand as for the shorthand:set background-repeat no-repeat --on button --state hoverfollowed byset background-image linear-gradient(#00ff00, #000000) --on button --state hoverbuilds a hover rule without the repeat, so the gradient tiles. - The test plan says this part's CI runs on this exact head, but the CI, lint and CLI smoke workflows run only for pull requests into
main, so no check has run on this head. - Non-blocking: the new entry in
scripts/vitest-node-durations.jsonsits outside itssecondsmap, so the shard sequencer never reads it.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim, editor-only change with no Core, spec record or official-theme change: verified; the four files are the editor module, its new test, a changeset and the test-duration record.
- Claim, based on the previous part of the round and merged in order: verified; the base branch is the previous part's branch.
- Claim, variant and state gradients are built as background longhands so a whole-part longhand still applies: verified by the new tests, which fail on the base and pass on the head, apart from the two regressions above.
- Claim, no change to the how-question phrase file and no new phrase matches: verified; that file is unchanged.
- Claim, every commit was gated in the round's integration branch: not visible here; on this head the changeset and CLI structure checks and four CLI typechecks pass, the strict typecheck reports only two untouched page templates that need a built theme, and 26 existing gradient test files pass.
- Claim, this part's CI runs on this exact head: false, as above.
- Claim, look gate on a site built from the top of the stack: not checkable at this head.
- Changeset claim, a gradient for a variant, a state or a mode is written as longhands, never the shorthand: verified by the tests and the built CSS.
- Changeset claim, a whole-part longhand still applies in every variant and state, so a hover gradient no longer tiles: verified for whole-part longhands; a longhand set in the same scope before a
background-imagegradient is now lost, as above. - Changeset claim, a scoped shorthand that resets a whole-part longhand is named in the result: verified by the new test.
- File
.changeset/experimental-theme-variant-gradient-longhands.md: clear; an experimental patch note that passes the changeset check. - File
packages/cli/api/theme-edit/_settings.mjs: the two regressions above; the reflowed lines are formatter output. - File
packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear, but it covers neither regression. - File
scripts/vitest-node-durations.json: the non-blocking note above.
|
Owner decision (engineering owner, covering this pull request): how the experimental theme editor writes a gradient set for a variant, a state or a mode is an experimental editor rule, approved as written. Each rule has a test, and the editor's answer names what it applied, so the user can see how their words were read. A test also shows that a gradient set on one variant, state or mode does not reach the others. |
|
/approve-spec 6c65255 |
|
I'll run a full review to re-check this with your note. |
There was a problem hiding this comment.
An engineering owner has approved the two new editor behaviours as written, so nothing waits on a spec decision; two regressions in packages/cli/api/theme-edit/_settings.mjs still need fixing before approval:
- A one-mode text color now skips every variant that has a gradient, because line 6488 checks
background-imagefor every color family, so afterset background linear-gradient(#ffffff, #e6e6e6) --on button --when variant:secondaryandset color #ff0000 --on button --mode darksecondary buttons keep Core's dark text color and the result wrongly blames their background image (checkbackground-imageonly for thebackground-colorfamily). - A background longhand set in the same variant or state before a
background-imagegradient is now silently dropped, because lines 6415-6418 clear position, size and repeat for that longhand as for the shorthand, soset background-repeat no-repeat --on button --state hoverfollowed byset background-image linear-gradient(#00ff00, #000000) --on button --state hoverbuilds a hover rule without the repeat and with no note (clear those keys only for thebackgroundshorthand).
Please add both cases to the new test file. Non-blocking: the new entry in scripts/vitest-node-durations.json sits outside its seconds map, so the shard sequencer never reads it. CI has not run on this head yet; it runs once the part targets main.
Claims and files checked
Review mode: same-head; reason: none
- Changed rules (0).
- Claim, editor-only change with no Core, spec record or official-theme change: verified; the four files are the editor module, its new test, a changeset and the test-duration record.
- Claim, a part of a round that lands in order on the previous part's branch: verified; the base branch is the previous part's branch.
- Claim, a variant's or a state's gradient is built as background longhands so a whole-part longhand still applies: verified; the new tests fail with the base module and pass on this head, apart from the two regressions above.
- Claim, no change to the how-question phrase file and no new phrase matches: verified; no phrase file changed.
- Claim, every commit was gated in the round's integration branch (full Node suite, typechecks, structure and changeset checks, held-out answer key): not checkable on this head; the new test file passes here.
- Claim, CI has not run on this head and runs once the part targets main: verified; only the review-signal workflow ran, and the CI, lint and CLI smoke workflows run only for pull requests into main.
- Claim, each head is also checked locally before CI: its own test file passes on this head; the rest is not checkable here.
- Claim, look gate on a site built from the top of the stack: not checkable at this head.
- Changeset claim, a gradient for a variant, a state or a mode is written as longhands, never the shorthand: verified by the tests and the built CSS.
- Changeset claim, a whole-part longhand still applies in every variant and state, so a hover gradient no longer tiles: verified for whole-part longhands; a longhand set in the same scope before a
background-imagegradient is now lost, as above. - Changeset claim, a scoped shorthand that resets a whole-part longhand is named in the result: verified by the new test.
- File
.changeset/experimental-theme-variant-gradient-longhands.md: clear; an experimental patch note. - File
packages/cli/api/theme-edit/_settings.mjs: the two regressions above; the reflowed lines are formatter output. - File
packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear, but it covers neither regression. - File
scripts/vitest-node-durations.json: the non-blocking note above.
9ce43cf to
b771372
Compare
6c65255 to
6ded7df
Compare
|
/approve-spec 6ded7df |
6ded7df to
7361f54
Compare
|
/approve-spec 7361f54 |
7361f54 to
d6850e8
Compare
b771372 to
2da36d5
Compare
|
/approve-spec d6850e8 |
There was a problem hiding this comment.
Requesting changes for one regression in the scoped-gradient fix; the two regressions from the last review are fixed, and an engineering owner has approved the editor rules for this head.
background nonefollowed by a gradient in the same variant or state now writesbackground-color: none(packages/cli/api/theme-edit/_settings.mjs:6423-6428), which browsers drop, so the variant's own fill shows under the gradient where the base build showed none; take the color withbackgroundColorLayer(under).colorand writetransparentwhen it has none.
Non-blocking: the same-scope test's title promises a plain color under the gradient, but the test never sets one, so add that case and none.
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients are written as background longhands and never the shorthand: verified (
_settings.mjs:6398-6442; the new tests over all seven base themes fail on the base and pass here). - Release note, a whole-part longhand such as
background-repeatstill applies in every variant and state, so a hover gradient no longer tiles: verified (same tests; the hover rule writes onlybackground-image). - Release note, a scoped shorthand that still resets such a longhand is named in the result: verified (
_settings.mjs:6555-6573; the reset-note test). - Description, editor-only with no Core, record or official-theme change: verified (three files; the theme build imports only an unchanged editor module).
- Description, based on the previous part of the round: verified (base branch).
- Description, no change to the how-question file and no new mood or feel phrases: verified (neither is in the change).
- Description, CI has not run on this head: verified (no workflow runs).
- Description, integration-branch gating, local checks and the look gate: not verifiable here (the author's own runs).
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: thebackground-color: nonefinding above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: the non-blocking test gap above.
d6850e8 to
6bd49bd
Compare
2da36d5 to
6188ba4
Compare
|
/approve-spec 6bd49bd |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. The two token-reading defects raised earlier are fixed: a token position with no slash is now written as background-position, and a color token beside the slash as background-color.
Two non-blocking points:
- Miss (non-blocking): a same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483, inline comment). - The reset note still names a longhand the scoped value sets itself, as the earlier inline comment on the note describes.
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8172-8205, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates and the look gate: not verifiable from this head; at this head the new test passes 19 of 19 (16 fail on the base), and the structure check, the changeset check and three CLI typechecks pass, while the strict typecheck stops only on two unchanged templates that need a built theme, as on the base.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
| const under = mb.background; | ||
| delete mb.background; | ||
| delete mb['background-image']; | ||
| delete mb.backgroundImage; | ||
| if (typeof under === 'string' && mb.backgroundColor == null) | ||
| mb.backgroundColor = backgroundColorLayer(under).color ?? 'transparent'; |
There was a problem hiding this comment.
Non-blocking (a miss on code unchanged since earlier reviews): this keeps only the color of a same-scope background shorthand. set <theme> background 'url("dots.png") center / 8px 8px no-repeat' --on button --state hover, then set <theme> background-image 'linear-gradient(#049cdb, #0064cd)' --on button --state hover, builds background-color: transparent; background-image: linear-gradient(…), so the hover loses the center / 8px 8px no-repeat set there; the base kept it, as CSS keeps a shorthand's other longhands under a later background-image, and the comment above says a position, size or repeat set in the same scope stays. Carry the shorthand's own position, size and repeat (its layerParts) into the longhands the gradient's layers leave unset, or name them in the result.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are now written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8179-8212, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, CI has not run on this head: verified.
- Description, integration-branch gates and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the existing mode, variant and state test passes, and the structure check, the changeset check and three CLI typechecks pass, while the strict typecheck stops only on two unchanged templates that need a built theme, as on the base.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8183-8227, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:8216-8225, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, CI has not run on this head: verified.
- Description, integration-branch gates and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the existing mode, variant and state test passes, and the structure check, the changeset check and three CLI typechecks pass, while the strict typecheck stops only on two unchanged templates that need a built theme, as on the base.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8183-8227, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:8216-8225, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base) and the existing mode, variant and state test passes.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8187-8231, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8220-8229, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base) and the existing mode, variant and state test passes.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8187-8231, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8220-8229, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base) and the existing mode, variant and state test passes.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the existing mode, variant and state test passes, and the changeset and CLI-structure checks pass.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the existing mode, variant and state test passes, and the changeset and CLI-structure checks pass.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the existing mode, variant and state test passes, and the changeset and CLI-structure checks pass.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Scoped gradients are written as background longhands, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test proves it (it fails on the base and passes here).
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three files, all in the CLI's experimental editor).
- Description, no change to the how-question phrase file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the existing mode, variant and state test passes, and the changeset and CLI-structure checks pass.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test fails on the base and passes here.
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8150-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing on the base).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor; the first and last commits' palette edits cancel out).
- Description, a part of a series based on the previous part's branch: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified.
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; here the new test passes 19 of 19 (16 fail on the base), the other gradient-building editor tests pass, and the changeset and CLI-structure checks pass.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
This push rebases the pull request without changing its own patch. No blocking findings: variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test fails without the change and passes with it.
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat are dropped with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, prefixed gradient,
url()andimage-set()layers included: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8150-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing without the change).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor; the first and last commits' palette edits cancel out).
- Description, a part of a series based on the previous part's branch and merged in order: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified (only the license and preview checks ran).
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; the new test fails 16 of its 19 cases without the change and passes all 19 with it.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying. The new test fails on the base and passes here.
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat drop with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients written as background longhands in any word order, with prefixed gradient,
url()andimage-set()layers: verified (_settings.mjs:6452-6497,:8130-8164, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8160, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing on the base).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor).
- Description, one part of a series based on the previous part's branch and merged in order: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified (only the license, preview and review-signal checks ran; no test, lint or typecheck job).
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; the new test fails 16 of its 19 cases on the base and passes all 19 here.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying. The new test fails on the base and passes here.
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat drop with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, with prefixed gradient,
url()andimage-set()layers: verified (_settings.mjs:6452-6497,:8130-8164, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8160, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing on the base).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor).
- Description, one part of a series based on the previous part's branch and merged in order: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified (only the license and preview checks ran; no test, lint or typecheck job).
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; the new test fails 16 of its 19 cases on the base and passes all 19 here.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying. The new test fails on the base and passes here.
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat drop with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, with prefixed gradient,
url()andimage-set()layers: verified (_settings.mjs:6452-6497,:8130-8164, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8160, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing on the base).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor).
- Description, one part of a series based on the previous part's branch and merged in order: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified (only the license and preview checks ran; no test, lint or typecheck job).
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; the new test fails 16 of its 19 cases on the base and passes all 19 here.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings. Variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying. The new test fails on the base and passes here.
Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat drop with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: carry-forward; reason: none
- Release note, scoped gradients written as background longhands in any word order, with prefixed gradient,
url()andimage-set()layers: verified (_settings.mjs:6452-6497,:8130-8164, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8160, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing on the base).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor).
- Description, one part of a series based on the previous part's branch and merged in order: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified (only the license and preview checks ran; no test, lint or typecheck job).
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; the new test fails 16 of its 19 cases on the base and passes all 19 here.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
…plies the editor-only fix
…nghands, so a whole-part background longhand still applies there
…keeps the background longhands set beside it A one-mode text or border color skipped every variant whose own background is a gradient, as if the image covered it; only a background color sits under the image. A background-image gradient also dropped a background position, size or repeat set before it in the same scope, and a plain background color set there. Now the gradient replaces only the image: a longhand set in the same scope stays unless a layer gives its own, and a plain color stays as the color under the image.
…ope leaves its color, or transparent, never background-color: none `background: none` set before a background-image gradient in the same variant, state or mode kept its whole value as the color under the image, which wrote background-color: none, a value browsers drop. The color under the image is now the shorthand's color layer, or transparent when it gives none (as the shorthand left it).
… is written as background longhands too A variant's or state's background that layered a gradient with a positioned url() image kept the url layer whole (its position, size and repeat inside background-image), which browsers drop. Each url() layer is now split like a gradient: its image to background-image and its position, size and repeat to their longhands. A layer with any other word (an attachment, an origin or clip box) has no longhand here, so the value is written as the background shorthand it was given.
…d order A variant's or state's background layer that gave its position, size or repeat before its image (`center / 8px 8px repeat-x linear-gradient(...)`, which CSS allows) was written into background-image with those words, which browsers drop. Each layer is now read by role: its image to background-image, its position, size and repeat to their longhands, in any order. A layer with any other word still keeps the shorthand as typed.
…image, and a one-mode image value is never a color A variant's or state's layer whose image was a prefixed gradient (-webkit-linear-gradient(...) repeat-x) or an image-set() was not read as an image, so its words went into background-image. Those are now images like any gradient or url(), and a layer of several words with no image this reads keeps the background shorthand as typed. A one-mode background with an attachment or box word (linear-gradient(...) fixed --mode dark) took the per-variant color branch and became background-color in every variant's rule for that mode; an image value now stays one value in the mode's block. The release note, the code comment and the test header no longer say a scoped gradient is never the shorthand: a layer with a word the longhands do not take keeps it.
…ever its color A variant's or state's gradient whose last layer gave a token size or position (`center / var(--spacing-4)`) wrote that var() as the background color and lost the size: a lone var() reads as a color, so it was taken for the color under the images. A lone var() beside the size slash is now read as the position or the size, as CSS reads it there, and is written as background-size.
…t names a color token A variant's or state's gradient whose layer gave a token position with no slash (`var(--spacing-2) top`) wrote that var() as the background color and dropped the position, and a color token beside the size slash was taken for a size, leaving an invalid position or size and no color. A lone var() is now the color under the images only when it names a color token; any other token is a position or a size, wherever it stands.
…n does in the editor too
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet; it runs once this pull request targets main.
No blocking findings: variant and state gradients are now written as background longhands, as mode gradients already were, so a whole-part background-repeat, -size or -position and each variant's own fill keep applying, and the new test fails on the base and passes here. Two non-blocking points, each with an inline comment already on the diff:
- A same-scope
backgroundshorthand set before abackground-imagegradient keeps only its color, so its position, size and repeat drop with no note (packages/cli/api/theme-edit/_settings.mjs:6478-6483). - The reset note still names a longhand the scoped value sets itself, such as the color of
background redon one variant (_settings.mjs:6620-6634).
Claims and files checked
Review mode: full; reason: rebase
- Release note, scoped gradients written as background longhands in any word order, with prefixed gradient,
url()andimage-set()layers: verified (_settings.mjs:6452-6497,:8130-8163, new tests). - Release note, a layer with an attachment or box word keeps the shorthand as typed: verified (
_settings.mjs:6456-6459,:8152-8161, new tests). - Release note, a whole-part background longhand still applies in every variant and state, so a hover gradient no longer tiles: verified (new test over all seven official themes, failing on the base).
- Release note, a shorthand still written there that resets such a longhand is named in the result: verified (
_settings.mjs:6617-6635, new test). - Release note,
[experimental]patch for the CLI: verified (the changeset check passes). - Description, editor-only with no Core, spec record or official-theme change: verified (three changed files, all in the CLI's experimental editor).
- Description, one part of a series based on the previous part's branch and merged in order: verified (the base branch is that part).
- Description, what changes (variant and state gradients built as longhands): verified as above.
- Description, no line change in the how-question file and no new mood or feel phrase matches: verified (neither is in the diff).
- Description, CI has not run on this head: verified (only the license and preview checks ran; no test, lint or typecheck job).
- Description, integration-branch gates, per-head local checks and the look gate: not verifiable from this head; the new test fails 16 of its 19 cases on the base and passes all 19 here, and ten nearby editor test files pass.
.changeset/experimental-theme-variant-gradient-longhands.md: clear.packages/cli/api/theme-edit/_settings.mjs: the two non-blocking points above.packages/cli/api/theme-edit/theme-built-variant-gradient-longhands.test.mjs: clear.
Summary: fix(cli): variant and state gradients keep the part's background longhands. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.Part 18 of 25 of round 15, landing as a stack: based on
theme-r15-p17; merge in order (the next part retargets onto main after this one merges).What changes
Phrase rules
_how-question.mjsline delta: +0/-0.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).