-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
CRA2 style tag with svg as component #5273
Comments
Removing the |
Ok then, I thought it was intended. So if I understand, this is more a bug from svgr ? Maybe I should create an issue there ? |
Yes, please. Your SVG should not be altered in any way. |
It seems that not removing the style tag is a v3 feature of svgr. See gregberge/svgr#191. |
#5361 seems to be on hold with a fix for this. Is there anything preventing a PR that upgrades just @svgr/webpack? |
I think #5816 closed this. |
I am still seeing this issue after #5816. Style tags are ignored. |
CRA now ships with a newer version of SVGR and we think this is resolved. If this is still an problem, can you raise a new issue? Thanks! |
Is this a bug report?
No.
I would like to use the new svg as react component feature from CRA2 but svgr keeps removing the <style> tag from my image. What I want is to use the
inlineStyles
plugin from svgo to transform the style tag into properties of the svg tag.As I can see in #5062 and #4799 svgo has been disabled. Is there any way I can override the default configuration ? I have tried with a
.svgrrc.json
, a.svgo.yml
andsvgr
key in the package.json but nothing worked.The text was updated successfully, but these errors were encountered: