-
Notifications
You must be signed in to change notification settings - Fork 829
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
remove fill-rule="even-odd" #876
Conversation
|
This is great, @gavinmn! Could We run that workflow on every push and commit the changes (if there are any). |
I don't know a ton about SVG optimization, but I don't think Left is the |
@gavinmn Ah, I see. We could run them both in that workflow: do the first pass with |
I'll dig further into this utility and see if there's any way to avoid moving / adding vector points. I think otherwise if we are in agreement that having these slightly funky svg point layouts is not an issue we could add it to the workflow to avoid any |
From what I can tell, neither plugin would get us everything we want in isolation — |
I'm not worried about adding extra SVG points. These SVGs are the output of "outline stroke" in Figma, so they're already not the "source" file.
I don't see any downside besides that it will take longer to run, which I'm not concerned about. Go ahead and add |
Going to work with Cole on getting this added as I'm not entirely sure how to add a python package to the workflow. |
Happy to mob on this with y'all too, should you need an extra set of eyes! I'm no Python expert, but can lend a hand if it'd be helpful ❤️ |
Gonna go ahead and close this in favor of @eliperkins's PR: #880 |
Related to #866
I was able to use https://github.com/googlefonts/picosvg to fix the
fill-rule
property of all of our Octicons. One thing to consider tho is that it looked likepicosvg
optimized strictly for filesize and the resulting icons have different point placements which makes the icons appear no different to the user, but theoretically would make editing an SVG from the library a bit clunkier. An example:Would love to hear some thoughts on these changes and if we want to consider adding something like this script to all icon pull requests to automate making sure we don't use
fill-rule="evenodd"
. An alternative discussed in #866 was to add a CI test to catchevenodd
which would require manual changing via the script or a Figma plugin before opening the pull request.cc @lesliecdubs @eliperkins @tallys