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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
refactor: display show/hide for layers in the style-panel only on hover (#3532)
Jaya Krishna Namburub28b1886ab18
diff --git a/packages/design-system/src/components/css-value-list-item.tsx b/packages/design-system/src/components/css-value-list-item.tsxindex 0fdddf99c9..4b3a00bf6c 100644--- a/packages/design-system/src/components/css-value-list-item.tsx+++ b/packages/design-system/src/components/css-value-list-item.tsx@@ -40,10 +40,12 @@ const IconButtonsWrapper = styled(Flex, {top: 0,bottom: 0,paddingRight: sharedPaddingRight,+ display: "none",});const FakeIconButtonsWrapper = styled(Flex, {paddingLeft: theme.spacing[5],+ display: "none",});/**@@ -66,6 +68,13 @@ const ItemButton = styled("button", {position: "relative","&:focus-visible, &[data-focused=true], &[data-state=open]": {+ [`& ${FakeIconButtonsWrapper}`]: {+ display: "flex",+ },+ [`~ ${IconButtonsWrapper}`]: {+ display: "flex",+ },+"&:after": {borderRadius: theme.borderRadius[3],outline: `2px solid ${theme.colors.borderFocus}`,@@ -110,13 +119,19 @@ type Props = ComponentProps<typeof ItemButton> & {const ItemWrapper = styled("div", {position: "relative",width: "100%",- "&:hover, &[data-active=true]": {+ "&:hover, &:focus-within, &[data-active=true]": {[`& ${ItemButton}`]: {backgroundColor: theme.colors.backgroundHover,[`&[data-draggable=true] ${DragHandleIconStyled}`]: {visibility: "visible",},},+ [`& ${IconButtonsWrapper}`]: {+ display: "flex",+ },+ [`& ${FakeIconButtonsWrapper}`]: {+ display: "flex",+ },},});