We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bae443 commit 2aeaed3Copy full SHA for 2aeaed3
1 file changed
packages/components/src/components/icon/icon.tsx
@@ -9,6 +9,7 @@ import {
9
ICON_TYPES,
10
type IconLibrary,
11
type IconType,
12
+ isBrandsIcon,
13
type PageType,
14
} from "@/utils/icon-utils";
15
import { isAbsoluteUrl } from "@/utils/is-absolute-url";
@@ -155,7 +156,8 @@ const Icon = ({
155
156
maskImage: `url(${url})`,
157
maskRepeat: "no-repeat",
158
maskPosition: "center",
- maskSize: iconLibrary === "lucide" ? "100%" : undefined,
159
+ maskSize:
160
+ iconLibrary === "lucide" && !isBrandsIcon(icon) ? "100%" : undefined,
161
backgroundColor: color,
162
...styleWithColors,
163
}}
0 commit comments