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.

box shadow around content editable

Oleg Isonen0d45137f8190
diff --git a/app/canvas/features/wrapper-component/use-css.tsx b/app/canvas/features/wrapper-component/use-css.tsx
index 57bd9e5a27..887f4fde9d 100644
--- a/app/canvas/features/wrapper-component/use-css.tsx
+++ b/app/canvas/features/wrapper-component/use-css.tsx
@@ -68,6 +68,9 @@ const defaultStyle = {
"&[contenteditable], &:focus": {
outline: 0,
},
+ "&[contenteditable]": {
+ boxShadow: "0 0 0px 4px rgb(36 150 255 / 20%)",
+ },
};
export const useCss = ({ instance, css }: UseCssProps): string => {