Closed plepe closed 4 years ago
@plepe, are you working on something where the inconsistent size is causing an issue?
My preference is really to redraw them to match the 15px grid. I’ve done this with a few egregiously blurry ones already (like the slot machine).
No, it's not totally necessary, I have to adapt my code though to accommodate these icons.
Also, I like it, when things work in a consistent way. With this very small pull request the icons behave like the others.
From my view, technical consistency seems useful even if visually some of these icons shouldn't be rendered at 15x15. But I don't feel too strongly about it and I'll defer to @bhousel here.
Thinking about it more, really none of the svg files should have width
and height
attributes.
We should probably just remove them all and leave it up to the viewBox
to define the coordinate system, and then the icons will be responsive within whatever element contains them. (This is how the fontawesome icons are).
Thinking about it more, really none of the svg files should have width and height attributes.
We should probably just remove them all and leave it up to the viewBox to define the coordinate system, and then the icons will be responsive within whatever element contains them.
Sounds okay to me. People expect SVGs to be easily scalable. But we should continue to design for a 15x15 minimum size.
But we should continue to design for a 15x15 minimum size.
I agree - I'll put a note about this in the README to make it more clear.
Ok I added a linting script that runs on build to cleanup the icon files and warn about anything that looks suspicious. It's pretty chatty right now with the warnings, but we can adjust that if we want to.
Oh also with width
and height
gone we should do a major semver bump whenever the next release is. This is minor but may affect anyone who uses the icons.
Thanks for the discussion! I think that is the way to go forward :-)
@plepe I'm glad this change works for you! Thanks for kicking off the discussion.
The icons which were imported in #2 have a size of 50x50, which is against the standard which is 15x15 (see my issue #59). This pull request scales all these icons to 15x15 (by only changing the width/height attributes, without changing the viewbox).