svg-inline-react
svg-inline-react copied to clipboard
Error when SVG has a style prop
When an SVG has a style
prop and raw
is set, the library errors due to React trying to map style
to the <svg>
.
Adobe Illustrator produces SVG's with style tags set and it would be nice to handle these.
Here's an example: https://codesandbox.io/s/floral-sound-nn1vl?file=/src/App.js
@sairion I would be willing to open a PR for this issue if that's alright
@sairion Was curious if you've gotten a chance to take a stab at this. I noticed that this seems to affect webpack 5 specifically. As after upgrading from 4 I noticed this bug with my app.