Closed martinDolan closed 4 years ago
Comparing the master branch to the npm branch, the issues look to be:
viewbox
is being stripped from the <symbol>
markup in the SVG spritefill
is not being stripped from the <svg>
markup in the SVG spriteIf these two changes are made manually, the SVG is able to be resized again. Next step is to look into why this is happening and make the necessary adjustments.
Thanks @coreymcollins - I plan to look into this in the coming week. I should have time on 5FTF next week at the latest.
This should be all fixed with this commit: https://github.com/WebDevStudios/wd_s/pull/507/commits/06d12bfd584dc920b8d8998fb2adb8228b326878
Going to close this one out. Thanks for bringing this up!
On
https://github.com/WebDevStudios/wd_s/tree/feature/npm-wd_s-wdscs
There are a few issues with SVGs:
Not resizeable Changing the width and height of the
svg
in other verisons ofwd_s
will scale thesvg
up or down . Currently, changing the size of the svg has no effect on the scale itself, instead only adjusting the boundaries of the container itself.Color Fill not working Adding a color fill (as in the example below has no impact on SVG output).
Steps to recreate this issue:
Add SVG using the
display_svg
function, for example: