Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ant-icons do not respect @ant-design/cssinjs layer #660

Open
Skysplit opened this issue Jul 25, 2024 · 0 comments
Open

ant-icons do not respect @ant-design/cssinjs layer #660

Skysplit opened this issue Jul 25, 2024 · 0 comments

Comments

@Skysplit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant