Skip to content

Commit 88cbfa3

Browse files
committed
fix
1 parent e2d2a88 commit 88cbfa3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/twenty-sdk/src/front-component-renderer/host/utils/createHtmlHostWrapper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ const parseCssString = (
4545
const property = declaration.slice(0, colonIndex).trim();
4646
const value = declaration.slice(colonIndex + 1).trim();
4747

48-
const key = property.startsWith('--')
48+
const isCssCustomProperty = property.startsWith('--');
49+
50+
const key = isCssCustomProperty
4951
? property
5052
: property.replace(/-([a-z])/g, (_, letter: string) =>
5153
letter.toUpperCase(),
5254
);
55+
5356
style[key] = value;
5457
}
5558

0 commit comments

Comments
 (0)