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 body preset styles (#1500)

Bogdan Chadkin6c787558fc4e
diff --git a/apps/builder/app/builder/builder.tsx b/apps/builder/app/builder/builder.tsx
index 611b3cb592..f319c79213 100644
--- a/apps/builder/app/builder/builder.tsx
+++ b/apps/builder/app/builder/builder.tsx
@@ -319,6 +319,7 @@ export const Builder = ({
css={{
height: "100%",
width: "100%",
+ backgroundColor: "#fff",
}}
/>
</Workspace>
diff --git a/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts b/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts
index c603e3dcd8..4067a73c1b 100644
--- a/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts
+++ b/apps/builder/app/builder/features/style-panel/shared/style-info.test.ts
@@ -174,13 +174,6 @@ test("compute inherited styles", () => {
)
).toMatchInlineSnapshot(`
{
- "color": {
- "instanceId": "1",
- "value": {
- "type": "keyword",
- "value": "#232323",
- },
- },
"fontFamily": {
"instanceId": "1",
"value": {
diff --git a/packages/react-sdk/src/components/body.ws.tsx b/packages/react-sdk/src/components/body.ws.tsx
index 63d3fa12bd..e10c18f9e4 100644
--- a/packages/react-sdk/src/components/body.ws.tsx
+++ b/packages/react-sdk/src/components/body.ws.tsx
@@ -15,11 +15,6 @@ const presetStyle = {
value: 100,
},
- backgroundColor: {
- type: "keyword",
- value: "white",
- },
-
fontFamily: {
type: "keyword",
value: "Arial",
@@ -36,11 +31,6 @@ const presetStyle = {
unit: "number",
value: 1.5,
},
-
- color: {
- type: "keyword",
- value: "#232323",
- },
},
} as const satisfies Record<typeof defaultTag, Style>;