We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2d2a88 commit 88cbfa3Copy full SHA for 88cbfa3
packages/twenty-sdk/src/front-component-renderer/host/utils/createHtmlHostWrapper.ts
@@ -45,11 +45,14 @@ const parseCssString = (
45
const property = declaration.slice(0, colonIndex).trim();
46
const value = declaration.slice(colonIndex + 1).trim();
47
48
- const key = property.startsWith('--')
+ const isCssCustomProperty = property.startsWith('--');
49
+
50
+ const key = isCssCustomProperty
51
? property
52
: property.replace(/-([a-z])/g, (_, letter: string) =>
53
letter.toUpperCase(),
54
);
55
56
style[key] = value;
57
}
58
0 commit comments