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 collapsed outline sometimes not visible (#1597)

Ivan Starkov6a3368add060
diff --git a/apps/builder/app/canvas/shared/styles.ts b/apps/builder/app/canvas/shared/styles.ts
index 0d087d5dc4..a4b27b3911 100644
--- a/apps/builder/app/canvas/shared/styles.ts
+++ b/apps/builder/app/canvas/shared/styles.ts
@@ -60,8 +60,9 @@ export const helperStyles = [
}`,
// Using :where allows to prevent increasing specificity, so that helper is overwritten by user styles.
`[${idAttribute}]:where([${collapsedAttribute}]:not(body)) {
- outline: 1px dashed #555;
- outline-offset: -0.5px;
+ outline: 1px dashed rgba(0,0,0,0.7);
+ outline-offset: -1px;
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}`,
// Has no width, will collapse
`[${idAttribute}]:where(:not(body)[${collapsedAttribute}="w"]) {