Skip to content
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

Stroke SVGs in sprite #52

Open
TeemuSuoranta opened this issue Oct 8, 2021 · 0 comments
Open

Stroke SVGs in sprite #52

TeemuSuoranta opened this issue Oct 8, 2021 · 0 comments

Comments

@TeemuSuoranta
Copy link
Contributor

Currently SVGs with strokes are not automatically handeled correctly by sprite as fill is applied in CSS regardless of SVG structure.

You can make svg specific fix in CSS with:

fill: none;
stroke: #000;
stroke-width: 1;

For better solution there could be a step in gulp process that migrates strokes into fills and thus makes all svgs work the same. Look into implementing: https://github.com/oslllo/svg-fixer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant