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.

cross icon from figma

Oleg Isonen33d771f2a2f0
diff --git a/apps/designer/app/designer/features/sidebar-left/lib/header.tsx b/apps/designer/app/designer/features/sidebar-left/lib/header.tsx
index b8817acb35..5bfc9f0e31 100644
--- a/apps/designer/app/designer/features/sidebar-left/lib/header.tsx
+++ b/apps/designer/app/designer/features/sidebar-left/lib/header.tsx
@@ -1,6 +1,6 @@
import { Flex, IconButton, Text } from "@webstudio-is/design-system";
import { Separator } from "@webstudio-is/design-system";
-import { Cross1Icon } from "@webstudio-is/icons";
+import { CrossIcon } from "@webstudio-is/icons";
type HeaderProps = {
title: string;
@@ -25,6 +25,6 @@ export const Header = ({ title, suffix }: HeaderProps) => {
export const CloseButton = ({ onClick }: { onClick: () => void }) => (
<IconButton onClick={onClick} size="2" aria-label="Close">
- <Cross1Icon />
+ <CrossIcon />
</IconButton>
);
diff --git a/packages/design-system/src/components/dialog.tsx b/packages/design-system/src/components/dialog.tsx
index 601cdda304..7afee06010 100644
--- a/packages/design-system/src/components/dialog.tsx
+++ b/packages/design-system/src/components/dialog.tsx
@@ -1,7 +1,7 @@
import React from "react";
import { styled, CSS } from "../stitches.config";
import * as DialogPrimitive from "@radix-ui/react-dialog";
-import { Cross1Icon } from "@webstudio-is/icons";
+import { CrossIcon } from "@webstudio-is/icons";
import { overlayStyles } from "./overlay";
import { panelStyles } from "./panel";
import { IconButton } from "./icon-button";
@@ -68,7 +68,7 @@ export const DialogContent = React.forwardRef<
{children}
<StyledCloseButton asChild>
<IconButton>
- <Cross1Icon />
+ <CrossIcon />
</IconButton>
</StyledCloseButton>
</StyledContent>
diff --git a/packages/design-system/src/components/popover.tsx b/packages/design-system/src/components/popover.tsx
index 1805fd274c..ae5a85a827 100644
--- a/packages/design-system/src/components/popover.tsx
+++ b/packages/design-system/src/components/popover.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { Cross1Icon } from "@webstudio-is/icons";
+import { CrossIcon } from "@webstudio-is/icons";
import * as PopoverPrimitive from "@radix-ui/react-popover";
import { Box } from "./box";
import { panelStyles } from "./panel";
@@ -76,7 +76,7 @@ export const PopoverHeader = ({ title }: PopoverHeaderProps) => {
<Text variant="title">{title}</Text>
<PopoverClose asChild>
<IconButton size="2" css={{ marginRight: "$2" }} aria-label="Close">
- <Cross1Icon />
+ <CrossIcon />
</IconButton>
</PopoverClose>
</Flex>
diff --git a/packages/design-system/src/components/sheet.tsx b/packages/design-system/src/components/sheet.tsx
index 07e0d9aac0..6f6e2fb39a 100644
--- a/packages/design-system/src/components/sheet.tsx
+++ b/packages/design-system/src/components/sheet.tsx
@@ -1,7 +1,7 @@
import React from "react";
import { styled, keyframes, VariantProps, CSS } from "../stitches.config";
import * as DialogPrimitive from "@radix-ui/react-dialog";
-import { Cross1Icon } from "@webstudio-is/icons";
+import { CrossIcon } from "@webstudio-is/icons";
import { overlayStyles } from "./overlay";
import { IconButton } from "./icon-button";
@@ -129,7 +129,7 @@ export const SheetContent = React.forwardRef<
{children}
<StyledCloseButton asChild>
<IconButton>
- <Cross1Icon />
+ <CrossIcon />
</IconButton>
</StyledCloseButton>
</StyledContent>
diff --git a/packages/icons/src/cross.tsx b/packages/icons/src/cross.tsx
new file mode 100644
index 0000000000..27da553621
--- /dev/null
+++ b/packages/icons/src/cross.tsx
@@ -0,0 +1,27 @@
+import * as React from "react";
+import { IconProps } from "./types";
+
+export const CrossIcon = React.forwardRef<SVGSVGElement, IconProps>(
+ ({ color = "currentColor", ...props }, forwardedRef) => {
+ return (
+ <svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ d="M13 3L7.99998 8.00002M7.99998 8.00002L3 13M7.99998 8.00002L3 3.00008M7.99998 8.00002L13 13"
+ stroke={color}
+ strokeWidth="1.6"
+ strokeLinecap="round"
+ />
+ </svg>
+ );
+ }
+);
+
+CrossIcon.displayName = "Cross";
diff --git a/packages/icons/src/index.ts b/packages/icons/src/index.ts
index f9cae2c4f7..7c554bb7f3 100644
--- a/packages/icons/src/index.ts
+++ b/packages/icons/src/index.ts
@@ -18,7 +18,6 @@ export {
DotFilledIcon,
TriangleRightIcon,
TriangleDownIcon,
- Cross1Icon,
CommitIcon,
InputIcon,
ButtonIcon,
@@ -92,4 +91,5 @@ export * from "./chevron-down";
export * from "./chevron-left";
export * from "./chevron-right";
export * from "./cross-circled-filled";
+export * from "./cross";
export * from "./magnifying-glass";