svgr
svgr copied to clipboard
Width & Height attributes didn’t work with viewBox
🐛 Bug Report
width
& height
attributes didn’t work with viewBox
.
I need to be able to keep the width
& height
+ viewBox but it didn't work.
To Reproduce
Steps to reproduce the behavior:
- Add all dimensions options in configuration https://react-svgr.com/docs/options/#dimensions
- Width & Height attributes didn’t work with viewBox
Expected behavior
Width & Height attributes work with viewBox
Link to repl or repo (highly encouraged)
Please provide a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run npx envinfo --system --binaries --npmPackages @svgr/core,@svgr/cli,@svgr/webpack,@svgr/rollup --markdown --clipboard
Paste the results here:
I'm also noticing this, after updating all my viewboxes have been removed
any fix for this?
???
This may help. https://react-svgr.com/docs/migrate/#svgo