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
fix: remove drag handle from variables and bindings (#2771)
Bogdan Chadkinee762409419e
diff --git a/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx b/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsxindex 093ae188e9..0b87d689ae 100644--- a/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/backgrounds/backgrounds.tsx@@ -99,6 +99,7 @@ const Layer = (props: {><CssValueListItemid={props.id}+ draggable={true}active={props.isHighlighted}index={props.index}label={diff --git a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsxindex 9d324fea26..8316f71c7d 100644--- a/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx+++ b/apps/builder/app/builder/features/style-panel/sections/box-shadows/box-shadow-layer.tsx@@ -67,6 +67,7 @@ export const Layer = (props: LayerProps) => {><CssValueListItemid={id}+ draggable={true}active={isHighlighted}index={index}label={<Label truncate>{name}</Label>}diff --git a/packages/design-system/src/components/css-value-list-item.stories.tsx b/packages/design-system/src/components/css-value-list-item.stories.tsxindex abedacdc59..3a09014bdc 100644--- a/packages/design-system/src/components/css-value-list-item.stories.tsx+++ b/packages/design-system/src/components/css-value-list-item.stories.tsx@@ -67,6 +67,7 @@ const ListItem = (props: {}thumbnail={<Thumbnail />}hidden={props.hidden}+ draggable={true}state={props.state}focused={props.focused}active={props.active}diff --git a/packages/design-system/src/components/css-value-list-item.tsx b/packages/design-system/src/components/css-value-list-item.tsxindex 1ef287eb81..2c3718572f 100644--- a/packages/design-system/src/components/css-value-list-item.tsx+++ b/packages/design-system/src/components/css-value-list-item.tsx@@ -95,6 +95,7 @@ type Props = ComponentProps<typeof ItemButton> & {id: string;index: number;hidden?: boolean;+ draggable?: boolean;label: React.ReactElement;thumbnail?: React.ReactElement;buttons?: React.ReactElement;@@ -112,9 +113,9 @@ const ItemWrapper = styled("div", {"&:hover, &[data-active=true]": {[`& ${ItemButton}`]: {backgroundColor: theme.colors.backgroundHover,- },- [`& ${DragHandleIconStyled}`]: {- visibility: "visible",+ [`&[data-draggable=true] ${DragHandleIconStyled}`]: {+ visibility: "visible",+ },},},});@@ -136,6 +137,7 @@ export const CssValueListItem = forwardRef(index,id,hidden,+ draggable,"data-state": dataState,...rest}: Props,@@ -167,6 +169,7 @@ export const CssValueListItem = forwardRef(<ItemButtonref={ref}data-id={id}+ data-draggable={draggable}data-focused={focused}data-state={state ?? dataState}data-active={active}