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.

Add dialog close button states (#2208)

Oleg Isonenf5e1de3fcd20
diff --git a/packages/sdk-components-react-radix/src/dialog.ws.tsx b/packages/sdk-components-react-radix/src/dialog.ws.tsx
index 606c3634db..10f316d3c2 100644
--- a/packages/sdk-components-react-radix/src/dialog.ws.tsx
+++ b/packages/sdk-components-react-radix/src/dialog.ws.tsx
@@ -9,6 +9,7 @@ import {
LargeXIcon,
} from "@webstudio-is/icons/svg";
import {
+ defaultStates,
type PresetStyle,
type WsComponentMeta,
type WsComponentPropsMeta,
@@ -83,6 +84,7 @@ export const metaDialogClose: WsComponentMeta = {
presetStyle: {
button: [buttonReset, button].flat(),
},
+ states: defaultStates,
icon: ButtonElementIcon,
label: "Close Button",
};