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

Set viewBox for icons that have not set it #277

Merged
merged 2 commits into from
Jan 10, 2018

Conversation

pickypg
Copy link
Member

@pickypg pickypg commented Jan 9, 2018

This sets the viewBox for SVG files that did not already have it set, which was stopping them from being resized properly in Chrome.

Closes #276

This sets the viewBox for SVG files that did not already have it set,
which was stopping them from being resized properly in Chrome.
@pickypg pickypg added the bug label Jan 9, 2018
@pickypg pickypg requested a review from cchaos January 9, 2018 21:38
@cjcenizal
Copy link
Contributor

@cchaos @snide Is this something we can fix within our pipeline, too? E.g. a Sketch setting or tweak to the SVGs in Sketch so that subsequent exports will contain the viewBox?

@cchaos
Copy link
Contributor

cchaos commented Jan 9, 2018

I think these were all my exports :( I used SVGO in the command line to optimize them and I think it removed the viewboxes. I'll try the SVGO Sketch plugin next time.

@cchaos
Copy link
Contributor

cchaos commented Jan 9, 2018

Thank you! LGTM, but the tests need to be updates. Most likely you'll need to clear your test cache first.

@pickypg pickypg merged commit 86ef937 into elastic:master Jan 10, 2018
@pickypg pickypg deleted the fix/add-viewBox branch January 10, 2018 17:48
pickypg added a commit that referenced this pull request Jan 10, 2018
pickypg added a commit that referenced this pull request Jan 10, 2018
@cjcenizal cjcenizal mentioned this pull request Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants