You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ant-icons with cssinjs <StyledProvider layer>, .anticon class has too high specificity and overrides colors for icons for example in <Result status="warning" />
This is working for me, at least where those specific colors are concerned. If there are any other conflicts, they can just be added to those styles and they should also work.
This will of course cause issues if there are multiple .anticon elements inside any element with a ...-warning (etc.) class, but you get the idea. Adjust specificity to taste.
antd
version:5.19.3
@ant-design/icons
version:5.4.0
@ant-desgin/cssinjs
version:1.21.0
When using ant-icons with cssinjs
<StyledProvider layer>
,.anticon
class has too high specificity and overrides colors for icons for example in<Result status="warning" />
reproduction link: https://codesandbox.io/p/sandbox/antd-layer-zm83kp
In reproduction link: warning icon is black, but it should be orange.
The text was updated successfully, but these errors were encountered: