Closed ling1726 closed 2 years ago
https://github.com/microsoft/fluentui-system-icons/blob/e663405d81150b015a96d0701d1d3998ffd9ec2c/packages/react-icons/src/utils/useIconState.tsx#L20
useIconState actually renames the primaryFill prop to fill. This means that the destructure result
useIconState
primaryFill
fill
const { primaryFill = 'currentColor', className } = props;
is always currentColor which breaks the primaryFill prop on every icon
currentColor
Repro: https://codesandbox.io/s/exciting-nash-g6fqdf?file=/example.tsx
https://github.com/microsoft/fluentui-system-icons/blob/e663405d81150b015a96d0701d1d3998ffd9ec2c/packages/react-icons/src/utils/useIconState.tsx#L20
useIconState
actually renames theprimaryFill
prop tofill
. This means that the destructure resultis always
currentColor
which breaks theprimaryFill
prop on every iconRepro: https://codesandbox.io/s/exciting-nash-g6fqdf?file=/example.tsx