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 style source menu trigger (#2205)

Bogdan Chadkinc5c4aa2593e9
diff --git a/apps/builder/app/builder/features/style-panel/style-source/style-source.tsx b/apps/builder/app/builder/features/style-panel/style-source/style-source.tsx
index a60a261f8e..ca8585a793 100644
--- a/apps/builder/app/builder/features/style-panel/style-source/style-source.tsx
+++ b/apps/builder/app/builder/features/style-panel/style-source/style-source.tsx
@@ -54,9 +54,25 @@ const MenuTrigger = styled("button", {
menuTriggerVisibilityOverrideVar,
cssVars.use(menuTriggerVisibilityVar)
),
- background: theme.colors.backgroundButtonHover,
"&:hover, &[data-state=open]": {
...menuCssVars({ show: true }),
+ "&::after": {
+ content: '""',
+ display: "block",
+ position: "absolute",
+ top: 0,
+ right: 0,
+ width: "100%",
+ height: "100%",
+ visibility: cssVars.use(
+ menuTriggerVisibilityOverrideVar,
+ cssVars.use(menuTriggerVisibilityVar)
+ ),
+ backgroundColor: theme.colors.backgroundButtonHover,
+ borderTopRightRadius: theme.borderRadius[4],
+ borderBottomRightRadius: theme.borderRadius[4],
+ pointerEvents: "none",
+ },
},
});