svg-sprite icon indicating copy to clipboard operation
svg-sprite copied to clipboard

Renamed class path

Open beatrizsmerino opened this issue 5 years ago • 1 comments

Hi !!

Hi, I have a problem with an svg, I am using class in the path to be able to apply a color through "sass in vue". Instead of having multiple versions of a logo, according to its color, I load only one and change its color from the scss styles.

The problem is that I see that it adds a random letter to the class, modifying it. How can I prevent this?

Screenshot at nov 23 02-33-33

Screenshot at nov 23 02-35-16

beatrizsmerino avatar Nov 23 '20 02:11 beatrizsmerino

Did you modify SVGO options? I believe this is related to the SVGO config.
Could you create a reproduction project on codesandbox?

farnabaz avatar Nov 23 '20 12:11 farnabaz