-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
props classname not append to svg classname and replaced in nextjs #921
Comments
Hmm. I spent about 3 hours creating a custom template to append the You can use the But, the |
Excellent, thanks! :D |
I don't get what you are saying. Adam Wathan did recommend adding Tailwind classes to SVG element here https://www.youtube.com/watch?v=MbUyHQRq2go&list=PL7CcGwsqRpSM3w9BT_21tUU8JN2SnyckR&index=13 When I first tried to add the classes to svg element, they didn't work, but later I realized because tailwind doesn't detect the usage and prune these classes from the final CSS file. When I included the svg file to tailwind config, thing seems to work fine. {
// ...other tailwind config
content: ["src/**/*.{ts,tsx,svg}"] // <- include the svg file type
} |
🐛 Bug Report
need props className append to svg classes , but It is now being replaced props className to svg class
To Reproduce
Expected behavior
os
The text was updated successfully, but these errors were encountered: