There was an error while loading. Please reload this page.
1 parent a9f838a commit 3432c9bCopy full SHA for 3432c9b
apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
@@ -335,7 +335,9 @@ const itemToString = (item: CssValueInputValue | null) => {
335
return "";
336
}
337
if (item.type === "var") {
338
- return `var(--${item.value})`;
+ return item.fallback
339
+ ? `var(--${item.value}, ${toValue(item.fallback)})`
340
+ : `var(--${item.value})`;
341
342
if (item.type === "keyword") {
343
// E.g. we want currentcolor to be lower case
0 commit comments