Commit c7d41ec
fix(cssHelper): narrow background→backgroundColor to ConditionalExpression only
The previous check used `condition === "always"` which also matches
destructured defaults (e.g. `({ bg = "url(...)" }) => background: ${bg}`).
Adding a `callArg.type === "ConditionalExpression"` guard ensures only
theme-resolved conditionals (where both branches are color tokens) get
the backgroundColor conversion.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 02da5b4 commit c7d41ec
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
491 | 491 | | |
492 | 492 | | |
493 | 493 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
498 | 505 | | |
499 | 506 | | |
500 | 507 | | |
| |||
0 commit comments