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
Style tag will no longer be automatically removed. SVGO should handle it correctly using "inlineStyles" plugin. If you want to remove them, enable "removeStyleElement" plugin in your SVGO config.
This is wrong, inlineStyles sometimes doesn't remove the style tag, because of the option onlyMatchedOnce. See source codes for details
To solve this, I have set { inlineStyles: { onlyMatchedOnce: false } }, in the svgoConfig.plugins, but I think this needs to be set inside svgr.
🐛 Bug Report
In the 3.0.0 changelog you wrote
This is wrong,
inlineStyles
sometimes doesn't remove the style tag, because of the optiononlyMatchedOnce
. See source codes for detailsTo solve this, I have set
{ inlineStyles: { onlyMatchedOnce: false } },
in thesvgoConfig.plugins
, but I think this needs to be set inside svgr.To Reproduce
Use svgr on this svg
Expected behavior
Style tag would be removed
Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
The text was updated successfully, but these errors were encountered: