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

Add picosvg to optimization step #883

Merged
merged 2 commits into from Dec 19, 2022
Merged

Add picosvg to optimization step #883

merged 2 commits into from Dec 19, 2022

Conversation

eliperkins
Copy link
Contributor

Related to:

A redux of #880 from primer/octicons, rather than my fork (eliperkins/octicons).

This adds in picosvg to the "Optimize SVGs" workflow, removing fill-rule="evenodd" from all SVGs.

Since picosvg is meant to work on a single file at a time, I used a bash loop to iterate through all files in icons before writing them back out, in-place.

cc @gavinmn @colebemis

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2022

🦋 Changeset detected

Latest commit: a40ba19

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/octicons Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@eliperkins eliperkins temporarily deployed to github-pages December 16, 2022 21:01 — with GitHub Actions Inactive
This should help remove `fill-rule="evenodd"` from SVGs, improving where
they can be rendered.
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@colebemis colebemis merged commit 8a039a7 into main Dec 19, 2022
@colebemis colebemis deleted the ep/picosvg branch December 19, 2022 21:11
@primer-css primer-css mentioned this pull request Dec 19, 2022
lunny pushed a commit to go-gitea/gitea that referenced this pull request Jan 21, 2023
- Update all JS dependencies
- Add new eslint rules
- Rebuild SVGs
- Tested citation and build

SVG changes are because of primer/octicons#883.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants