From 0bed32567bbb6585a360888ce159244271c1d058 Mon Sep 17 00:00:00 2001 From: tomi-msft Date: Tue, 6 Feb 2024 10:48:59 -0800 Subject: [PATCH] Update style injection in font icon files --- packages/react-icons/src/utils/fonts/createFluentFontIcon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-icons/src/utils/fonts/createFluentFontIcon.tsx b/packages/react-icons/src/utils/fonts/createFluentFontIcon.tsx index b0283c323a..f2f1e797ee 100644 --- a/packages/react-icons/src/utils/fonts/createFluentFontIcon.tsx +++ b/packages/react-icons/src/utils/fonts/createFluentFontIcon.tsx @@ -85,7 +85,7 @@ export function createFluentFontIcon(displayName: string, codepoint: string, fon // We want to keep the same API surface as the SVG icons, so translate `primaryFill` to `color` - if (props.primaryFill) { + if (props.primaryFill && props.primaryFill.toLowerCase() !== 'currentcolor') { state.style = { ...state.style, color: props.primaryFill