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
Hello @DylanMerigaud, thanks for this report. I think it is a problem in the Babel plugin order, we have figure out how to ensure that the props spread is at the end.
🐛 Bug Report
When icon parameter is passed and that the svg has no width and height the {...props} occurs before the width="1em" height="1em"
To Reproduce
Convert a svg file with not width and height props
Expected behavior
{...props} to be after width="1em" height="1em"
Link to repl or repo (highly encouraged)
https://github.com/DylanMerigaud/Bug_svgr_icon
Run
npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
The text was updated successfully, but these errors were encountered: