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

Fix: icon display issue in Safari #942

Merged
merged 1 commit into from
Nov 6, 2018
Merged

Conversation

mikemai2awesome
Copy link
Collaborator

Jira

http://vjira2:8080/browse/BDS-712

Summary

Fixes an issue with certain icons not rendering in Safari browsers.

Details

Certain icons were not appearing in Safari browsers due to the masking within the SVG files. I re-saved those icons without the masking and flatten them.

How to test

Run the branch locally, load up the icon demo page (http://localhost:3000/pattern-lab/?p=components-icon-name-variations) in Mac Safari and iOS Safari (using browserstack or xcode simulator). Make sure all icons render on the page.

@bolt-bot
Copy link
Collaborator

bolt-bot commented Nov 2, 2018

⚡ PR built on Travis and deployed a now preview here:

Copy link
Collaborator

@remydenton remydenton left a comment

Choose a reason for hiding this comment

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

Looks like it works!

I noticed the new svgs are minified whereas the old ones weren't. Probably doesn't make much difference if we just consider them essentially the same as binary files/images (i.e. you shouldn't ever edit the files in Bolt, just re-export from Sketch).

@mikemai2awesome
Copy link
Collaborator Author

@remydenton

Being OCD, I kind of want to re-save ALL of them, the ones under utility are very inconsistent...

@remydenton
Copy link
Collaborator

I'm going to go ahead and merge since this fixes the Safari problem. @mikemai2awesome, feel free to indulge your OCD in a separate PR :)

@remydenton remydenton merged commit 4ca3194 into master Nov 6, 2018
@remydenton remydenton deleted the fix/bds-712-icons-in-safari branch November 6, 2018 18:08
@remydenton remydenton mentioned this pull request Nov 6, 2018
This was referenced Nov 18, 2018
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.

4 participants