Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: make currentcolor lower case (#3128)

Oleg Isonenff0b913ac107
diff --git a/apps/builder/app/builder/features/style-panel/shared/color-picker.tsx b/apps/builder/app/builder/features/style-panel/shared/color-picker.tsx
index 8b76e9b691..b04e083121 100644
--- a/apps/builder/app/builder/features/style-panel/shared/color-picker.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/color-picker.tsx
@@ -30,8 +30,8 @@ extend([namesPlugin]);
const colorfulStyles = css({
".react-colorful__pointer": {
- width: 20,
- height: 20,
+ width: theme.spacing[10],
+ height: theme.spacing[10],
},
});
diff --git a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
index 3b4655120f..31b6bf42ae 100644
--- a/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/css-value-input/css-value-input.tsx
@@ -35,7 +35,6 @@ import { parseIntermediateOrInvalidValue } from "./parse-intermediate-or-invalid
import { toValue } from "@webstudio-is/css-engine";
import { useDebouncedCallback } from "use-debounce";
import type { StyleSource } from "../style-info";
-import { toKebabCase } from "../keyword-utils";
import {
declarationDescriptions,
isValidDeclaration,
@@ -309,7 +308,8 @@ const itemToString = (item: CssValueInputValue | null) => {
return item === null
? ""
: item.type === "keyword"
- ? toKebabCase(toValue(item))
+ ? // E.g. we want currentcolor to be lower case
+ toValue(item).toLocaleLowerCase()
: item.type === "intermediate" || item.type === "unit"
? String(item.value)
: toValue(item);