shakyShane / gulp-svg-sprites

Create SVG sprites or compile to <symbols>
MIT License
334 stars 45 forks source link

Feature: option to remove fill from sprites.svg #54

Open growdigital opened 10 years ago

growdigital commented 10 years ago

One of the advantages of using inline SVG (by Ajaxing in the sprites.svg file) is that the elements are styleable using pseudo class selectors eg ::hover and ::active. See here for examples:

http://growdigital.org/test-ajax-svg-icons/
http://codepen.io/sol0mka/pen/80187d6000795e8cfd104486861a801e

It may be good to have an option to remove fills and strokes from all elements (although that does make generating PNG fallbacks a bit more problematic…), possibly by adapting SVGO plugin along these lines:

https://github.com/svg/svgo/blob/master/plugins/removeUselessStrokeAndFill.js

ryanmclaughlin commented 8 years ago

:+1:

pahen commented 8 years ago

:+1:

jklue commented 7 years ago

+1 would be very useful