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.

feat: allow deleting style layers even when in hidden state (#4059)

Jaya Krishna Namburu8de31b373731
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
index b12bce9fc3..7a2123d063 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
@@ -242,7 +242,6 @@ const TransformSection = (
<SmallIconButton
variant="destructive"
tabIndex={-1}
- disabled={properties.value.hidden}
icon={<SubtractIcon />}
onClick={() =>
handleDeleteTransformProperty({
diff --git a/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx b/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx
index 1366089976..211a1df2f4 100644
--- a/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx
+++ b/apps/builder/app/builder/features/style-panel/shared/repeated-style.tsx
@@ -168,7 +168,6 @@ export const RepeatedStyle = (props: {
<SmallIconButton
variant="destructive"
tabIndex={-1}
- disabled={primaryValue.hidden}
icon={<SubtractIcon />}
onClick={() =>
transformLayers((value) => deleteLayer(value, index))
diff --git a/apps/builder/app/builder/features/style-panel/style-layers-list.tsx b/apps/builder/app/builder/features/style-panel/style-layers-list.tsx
index 4d12c44082..f53736d7d0 100644
--- a/apps/builder/app/builder/features/style-panel/style-layers-list.tsx
+++ b/apps/builder/app/builder/features/style-panel/style-layers-list.tsx
@@ -198,7 +198,6 @@ export const LayersList = (props: LayerListProps) => {
<SmallIconButton
variant="destructive"
tabIndex={-1}
- disabled={layer.hidden}
icon={<SubtractIcon />}
onClick={() => handleDeleteLayer(index)}
/>