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: set xml node background to white (#5183)

Jaya Krishna Namburud3be082602d2
diff --git a/packages/sdk-components-react/src/head-slot.tsx b/packages/sdk-components-react/src/head-slot.tsx
index c081096302..f598634be1 100644
--- a/packages/sdk-components-react/src/head-slot.tsx
+++ b/packages/sdk-components-react/src/head-slot.tsx
@@ -26,7 +26,6 @@ export const HeadSlot = forwardRef<
<div
ref={ref}
style={{
- backgroundColor: "rgba(255,255,255,1)",
padding: "8px",
position: "fixed",
top: 0,
diff --git a/packages/sdk-components-react/src/xml-node.tsx b/packages/sdk-components-react/src/xml-node.tsx
index 797a202f9b..6bc6cda9cb 100644
--- a/packages/sdk-components-react/src/xml-node.tsx
+++ b/packages/sdk-components-react/src/xml-node.tsx
@@ -71,7 +71,7 @@ export const XmlNode = forwardRef<ElementRef<"div">, Props>(
};
return (
- <div {...props}>
+ <div {...props} style={{ backgroundColor: "rgba(255,255,255,1)" }}>
<span>
<span style={{ color: "#800000" }}>&lt;{elementName}</span>
{attributeEntries.length > 0 && renderAttributes(attributeEntries)}