Skip to content
This repository has been archived by the owner on Nov 18, 2023. It is now read-only.

renderSVG no longer using width/height options #23

Open
yankeeinlondon opened this issue Sep 30, 2021 · 0 comments
Open

renderSVG no longer using width/height options #23

yankeeinlondon opened this issue Sep 30, 2021 · 0 comments

Comments

@yankeeinlondon
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants