react-svg-loader icon indicating copy to clipboard operation
react-svg-loader copied to clipboard

SVG files with declared width and height render incorrectly

Open ohmycthulhu opened this issue 3 years ago • 1 comments

When SVG file has viewBox, width, and height attributes, manipulating using CSS styles are impossible (path is not contained in svg element). This behavior started after upgrading from 2.1.0 to 3.0.3.

When all attributes are present: image image

When only viewBox is present: image image

ohmycthulhu avatar Apr 18 '22 11:04 ohmycthulhu

Can confirm this is a bug. Any pointers @boopathi?

kukagg avatar Jun 17 '22 12:06 kukagg