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
pass fill to the GearIcon as a prop
Oleg Isonen2d7743008097
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsx b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsxindex f5ae35c742..b9d9b3a947 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager/asset-info-tigger.tsx@@ -1,5 +1,5 @@import { useState } from "react";-import { Button, Tooltip } from "@webstudio-is/design-system";+import { Button, theme, Tooltip } from "@webstudio-is/design-system";import { GearIcon } from "@webstudio-is/icons";import { AssetInfo } from "./asset-info";@@ -39,7 +39,6 @@ export const AssetInfoTrigger = ({variant="raw"title="Options"onClick={() => setTooltipOpen(true)}- data-info-trigger="true"css={{display: "var(--display-info-trigger)",position: "absolute",@@ -48,17 +47,12 @@ export const AssetInfoTrigger = ({right: "$1",cursor: "pointer",transition: "opacity 100ms ease",-"&:hover": {color: "$hiContrast",},-- "svg path": {- fill: "$loContrast",- },}}>- <GearIcon />+ <GearIcon fill={theme.colors.loContrast} /></Button></Tooltip>);diff --git a/packages/icons/src/gear.tsx b/packages/icons/src/gear.tsxindex 2891dc56d7..5fae841fad 100644--- a/packages/icons/src/gear.tsx+++ b/packages/icons/src/gear.tsx@@ -1,35 +1,31 @@import * as React from "react";import { IconProps } from "./types";-export const GearIcon = 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="M9.117 2.878c-.284-1.17-1.95-1.17-2.234 0a1.149 1.149 0 01-1.714.71c-1.03-.627-2.207.551-1.58 1.58a1.15 1.15 0 01-.711 1.715c-1.17.284-1.17 1.95 0 2.234a1.15 1.15 0 01.71 1.714c-.627 1.03.551 2.207 1.58 1.58a1.148 1.148 0 011.715.711c.284 1.17 1.95 1.17 2.234 0a1.15 1.15 0 011.714-.71c1.03.627 2.207-.551 1.58-1.58a1.148 1.148 0 01.711-1.715c1.17-.284 1.17-1.95 0-2.234a1.15 1.15 0 01-.71-1.714c.627-1.03-.551-2.207-1.58-1.58a1.15 1.15 0 01-1.715-.711z"- stroke={color}- strokeWidth={1.25}- strokeLinecap="round"- strokeLinejoin="round"- />- <circle- cx={8}- cy={7.99988}- r={1.875}- stroke={color}- strokeWidth={1.25}- />- </svg>- );- }-);+export const GearIcon = React.forwardRef<+ SVGSVGElement,+ IconProps & { fill?: string }+>(({ color = "currentColor", fill = "none", ...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="M9.117 2.878c-.284-1.17-1.95-1.17-2.234 0a1.149 1.149 0 01-1.714.71c-1.03-.627-2.207.551-1.58 1.58a1.15 1.15 0 01-.711 1.715c-1.17.284-1.17 1.95 0 2.234a1.15 1.15 0 01.71 1.714c-.627 1.03.551 2.207 1.58 1.58a1.148 1.148 0 011.715.711c.284 1.17 1.95 1.17 2.234 0a1.15 1.15 0 011.714-.71c1.03.627 2.207-.551 1.58-1.58a1.148 1.148 0 01.711-1.715c1.17-.284 1.17-1.95 0-2.234a1.15 1.15 0 01-.71-1.714c.627-1.03-.551-2.207-1.58-1.58a1.15 1.15 0 01-1.715-.711z"+ stroke={color}+ fill={fill}+ strokeWidth={1.25}+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ <circle cx={8} cy={7.99988} r={1.875} stroke={color} strokeWidth={1.25} />+ </svg>+ );+});GearIcon.displayName = "GearIcon";