publitas / react-svg-icons

33 stars 11 forks source link

Turn off manipulation of original svg file? #6

Open nadangergeo opened 8 years ago

nadangergeo commented 8 years ago

Hey buddy! I started using this, and love it al ready :)

I noticed that react svg icons (or possibly svg-to-react) changes the svg; it removed classes and it merged certain paths. Is it possible to cirmumvent this? I'm trying to do some CSS-magic on svg-files and this isn't helping :P Any ideas how I should do this?

felixhageloh commented 8 years ago

Glad you like the library! Do you have some examples of attributes that got changed? Hard to say what is happening otherwise - I have a hunch tho that it is react itself. I'm basing it on the fact that you have to use className instead of class with React, to give an example (more info here btw https://facebook.github.io/react/docs/tags-and-attributes.html)