-
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
[Bug] Some icons render incorrectly or throw warnings when used in iOS, macOS xcasset bundles #866
Comments
Dropping some more debugging logs from setting
Unfortunately, all of the above errors are logged without the names of the actual icons, as there's not a way to have the verbose debugging logs print the icon names themselves. |
Had a chance to go over this with @eliperkins and we identified the issue with the SVG attribute |
Hey @lesliecdubs can we get some engineering backup on automating checking this? |
@tallys to confirm, you're looking for engineering support to automate changing any instances of the fill rule |
Yep, just automating that rule. And, not too much urgency, but would love to make sure it doesn't get lost in the shuffle. |
🤔 I'm not sure this is our solution — changing any instance of |
A test to check SVG's before they merge would be useful going forward tho! |
@gavinmn do you want to spend a little more time with this to determine a potential solution, or do you want some engineering support to help figure that out? Or does adding the test you suggested feel like a good enough improvement for us to move forward with? |
I'll keep looking into it — tools like https://github.com/googlefonts/picosvg might be able to help do this! |
This includes a bug fix which prevents malformed SVGs when rendering on macOS or iOS platforms. Closes primer#866
This includes a bug fix which prevents malformed SVGs when rendering on macOS or iOS platforms. Closes #866
This includes a bug fix which prevents malformed SVGs when rendering on macOS or iOS platforms. Closes primer#866
* Upgrade to latest version of SVG Optimizer This includes a bug fix which prevents malformed SVGs when rendering on macOS or iOS platforms. Closes #866 * Bump NodeJS version used in Actions for svgo * Use latest NodeJS LTS * Revert npm to yarn change * Optimize SVGs * Create forty-owls-melt.md * Update snapshots * Remove unneeded package manager declaration * Bump to SVGO 3.0.2 * Update snapshot Co-authored-by: Eli Perkins <[email protected]> Co-authored-by: Cole Bemis <[email protected]>
Describe the bug
I put the SVG assets from the v17.9.0 release of Octicons into an xcasset bundle, enabling "Preserve Vector Data", and built a viewer for the Octicons within a macOS app.
A number of the icons rendered odd paths, resulting in improper display of the icons.
List of affected icons
broadcast-16
broadcast-24
copilot-48
copilot-96
copilot-warning-16
eye-closed-24
file-badge-16
gear-24
history-16
issue-draft-16
issue-draft-24
issue-reopened-16
iterations-16
iterations-24
link-16
link-24
mention-16
mention-24
meter-16
moon-16
number-24
paintbrush-16
paperclip-16
paste-16
paste-16
people-16
people-24
person-16
person-24
person-add-16
person-add-24
person-fill-16
person-fill-24
question-16
rss-16
rss-24
squirrel-16
squirrel-24
tools-24
unmute-16
unmute-24
unverified-16
webhook-16
Steps to reproduce
For Hubbers:
github/octicons
For non-Hubbers:
Expected behavior
Octicons render on iOS and macOS in the same manner that they do within web browsers, without the need for modifications.
Screenshots
Please add screenshots to help explain the problem.
gear-24
history-16
issue-draft-16
iterations-24
person-24
Device details
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional info
Currently, GitHub Mobile uses the PDFs as exported from the Octicons site, which render fine! It seems to be the format of the SVGs that iOS and macOS don't like.
However, if we can build SVGs that work on iOS and macOS, we can leverage the versioning of the npm package to have Octicons be version-bumped by Dependabot automagically, keeping GitHub Mobile's icons consistently up-to-date.
The text was updated successfully, but these errors were encountered: