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 the empty selector

Oleg Isonen47f6b410eb83
diff --git a/app/canvas/features/wrapper-component/use-css.tsx b/app/canvas/features/wrapper-component/use-css.tsx
index a61e5ce51b..3e4dd0c8f8 100644
--- a/app/canvas/features/wrapper-component/use-css.tsx
+++ b/app/canvas/features/wrapper-component/use-css.tsx
@@ -50,7 +50,7 @@ const voidElements =
"area, base, br, col, embed, hr, img, input, link, meta, source, track, wbr";
const defaultStyle = {
- [`&not(${voidElements}):empty`]: {
+ [`&:not(${voidElements}):empty`]: {
outline: "1px dashed #555",
outlineOffset: -1,
paddingTop: "$8",