antfu / purge-icons

🎐 Bundles icons on demand
https://www.npmjs.com/package/purge-icons
MIT License
229 stars 18 forks source link

renderSVG no longer using width/height options #23

Open yankeeinlondon opened 2 years ago

yankeeinlondon commented 2 years ago

I have a Vue component which has used the renderSVG's options hash to set width and height like so:

Iconify.renderSVG(props.icon, props.kind === "icon" ? { width: "100%", height: "100%" } : {})

This had been working but seems to have broken in more recent versions. Instead of the SVG getting the targeted height/width props it now just gets 1rem/1rem which is the default. Should be incredibly easy to reproduce.