Skip to content

Commit

Permalink
fix: Add styling to font icons to fix HC color issues (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi-msft authored Dec 10, 2024
1 parent cc6b475 commit e01fd76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-icons/src/utils/fonts/createFluentFontIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const enum FontFile {
Filled = 0,
Regular = 1,
Resizable = 2,
Light = 3
Light = 3
}

const FONT_FAMILY_MAP = {
Expand Down Expand Up @@ -70,9 +70,10 @@ const useRootStyles = makeStyles({
display: 'inline-block',
fontStyle: 'normal',
lineHeight: '1em',
color: 'currentColor',

"@media (forced-colors: active)": {
forcedColorAdjust: 'none',
forcedColorAdjust: 'auto',
}
},
[FontFile.Filled]: {
Expand Down

0 comments on commit e01fd76

Please sign in to comment.