w0rm / gulp-svgstore

Combine svg files into one with symbol elements
https://www.npmjs.com/package/gulp-svgstore
645 stars 33 forks source link

Combine svg's to sprite - apply class attribute to symbols #100

Closed mpohalos closed 4 years ago

mpohalos commented 5 years ago

As i am interested in a similar functionality of this #82 i want to ask about the following functionality.

So this svg `

...

`

is stored in the sprite as follows

`

...

` I cannot pass the class of each svg to the respective symbol that is created in the sprite. Can this be done?

w0rm commented 4 years ago

How did you get a class name in the svg file and what do you need this for? If the class name ends up in the browser, it then will be conflicting with the existing classes and css styles on the page. What if two icons get the same class name? I am not sure about the need to support this.