WebDevStudios / wd_s

A starter theme from WebDevStudios.
https://wdunderscores.com
GNU General Public License v2.0
663 stars 138 forks source link

SVG problems (on working branch) #514

Closed martinDolan closed 4 years ago

martinDolan commented 4 years ago

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 of wd_s will scale the svg 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:

_s_display_svg(
  array(
    'icon'   => 'pause',
    'fill'   => '#f87039',
    'width'  => '20',
    'height' => '24',
  )
);
coreymcollins commented 4 years ago

Comparing the master branch to the npm branch, the issues look to be:

If 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.

martinDolan commented 4 years ago

Thanks @coreymcollins - I plan to look into this in the coming week. I should have time on 5FTF next week at the latest.

coreymcollins commented 4 years ago

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!