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 panel layers list rendering (#3778)

Oleg Isonena4ee2f8187ba
diff --git a/packages/design-system/src/components/css-value-list-item.tsx b/packages/design-system/src/components/css-value-list-item.tsx
index 1b616b0401..9dfb91d3b2 100644
--- a/packages/design-system/src/components/css-value-list-item.tsx
+++ b/packages/design-system/src/components/css-value-list-item.tsx
@@ -40,12 +40,12 @@ const IconButtonsWrapper = styled(Flex, {
top: 0,
bottom: 0,
paddingRight: sharedPaddingRight,
- visibility: "hidden",
+ display: "none",
});
const FakeIconButtonsWrapper = styled(Flex, {
paddingLeft: theme.spacing[5],
- visibility: "hidden",
+ display: "none",
});
/**
@@ -69,10 +69,10 @@ const ItemButton = styled("button", {
"&:focus-visible, &[data-focused=true], &[data-state=open]": {
[`& ${FakeIconButtonsWrapper}`]: {
- visibility: "visible",
+ display: "flex",
},
[`~ ${IconButtonsWrapper}`]: {
- visibility: "visible",
+ display: "flex",
},
"&:after": {
@@ -127,10 +127,10 @@ const ItemWrapper = styled("div", {
},
},
[`& ${IconButtonsWrapper}`]: {
- visibility: "visible",
+ display: "flex",
},
[`& ${FakeIconButtonsWrapper}`]: {
- visibility: "hidden",
+ display: "flex",
},
},
});