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

Using antd icons with CSS layer, tailwindcss v4 #682

Open
minjinso opened this issue Feb 5, 2025 · 0 comments
Open

Using antd icons with CSS layer, tailwindcss v4 #682

minjinso opened this issue Feb 5, 2025 · 0 comments

Comments

@minjinso
Copy link

minjinso commented Feb 5, 2025

Image Image Image

The situation above occurred because I used another ConfigProvider in custom component module(ex: ConfigProvider -> StyleProvider -> IconProvider -> ConfigProvider). In the inner ConfigProvider, it doesn't get parent IconContext values. So I solved this problem by removing inner ConfigProvider and setting 'custom name' to IconProvider layer props.
However, with this antd icon "prepend" option, other situations might arise where the antd layer comes to the topmost layer, so I'm raising this as an issue.

This situation can be reproduced by setting IconProvider's layer value to 'antd'.
<IconProvider key="icon-provider" value={{ layer: 'antd' }} />

@minjinso minjinso changed the title using antd icons with CSS layer Using antd icons with CSS layer, tailwindcss v4 Feb 5, 2025
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