Commit 77e01f5
fix(theme): return Less_Tree_Keyword for boolean custom Less functions (#4405)
Boolean return values from `addCustomLessFunction` were wrapped in
`Less_Tree_Quoted`, producing a quoted string ('true'/'false') instead
of a Less keyword (true/false). Quoted strings do not match in mixin
guards, making it impossible to use boolean-returning functions with
`.mixin(false) {}` patterns.
Switch to `Less_Tree_Keyword` so booleans behave as proper Less keywords.
CSS custom property output is unchanged; only mixin guard matching is fixed.
Fixes #4383
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9854202 commit 77e01f5
File tree
3 files changed
+10
-1
lines changed- framework/core
- src/Extend
- tests
- fixtures/less
- integration/extenders
3 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
0 commit comments