-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong dimensions and color #59
Comments
Hey @tanmay1978, regarding the dimension issue, please post your complete configuration for the transformation. Regarding the color: Please follow this thread for an explanation (and possible solution). Cheers, Joschi |
Hi the grunt config is as follow // Make SVG sprite images from input svg icons
svg_sprite : {
your_target : {
cwd : paths.images.srcIcons,
src : '*.svg',
dest : paths.images.staticImages,
options : {
shape : {
spacing : {
padding : 5
}
},
mode : {
view : {
bust : false,
render : {
scss : {
dest : '_sprite'
}
}
}
}
}
}
}, |
So the dimension increase from 40 to 50 pixels is a logical result of your Did you follow the other thread regarding the CSS issue. As I don't see any error in Cheers, Joschi |
Thanks will check and confirm |
I just checked if I use shape.spacing.box then the sprites are generated with no spacing between them and still the dimensions vary by 10px |
What value did you set for |
it was set to "content" [image: --] Tanmay Arun Navghare On Tue, Sep 8, 2015 at 12:52 AM, Joschi Kuphal notifications@github.com
|
So you didn't change anything? Then, of course, the behavior wouldn't change. Again, please read the relevant documentation section to understand the available options and how to use them. Thanks. |
An icon of dimension 40x40 when added to sprite it renders it as 50x50
Another issue is with the color. If I have a svg icon of white when that is added to the sprite it defaults to black. But that is beacause a class is added to all the svg elements and that class is overriden for other icons in the sprite. Is that a way to eliminate the use of css styles that it applies by default?
The text was updated successfully, but these errors were encountered: