Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mdo
Copy link
Member

@mdo mdo commented Nov 17, 2020

Right now, our icons don't open well in Sketch, Illustrator, etc because the width and height of 1em registers as 1 pixel. This drops the width and height conversion from our build script and updates the width and height to 16. This doesn't mean you cannot use 1em as a height or width, in CSS or otherwise, just that by default we'll use pixels to ensure more consistent rendering.

Fixes #492.

@mdo mdo added the bug Something isn't working label Nov 17, 2020
mdo added 2 commits December 4, 2020 11:30
Fixes broken rendering of 1x1px when opening current icons in Sketch, Illustrator, etc. Also reprocesses icons to reorder the attributes.

Fixes #492
@mdo mdo force-pushed the pixel-dimensions branch from 79477ad to 6a81085 Compare December 4, 2020 19:31
@mdo mdo merged commit e3dad6d into main Dec 7, 2020
@mdo mdo deleted the pixel-dimensions branch December 7, 2020 17:24
leafac added a commit to leafac/icons that referenced this pull request Apr 29, 2021
The documentation still states that the SVGs width and height are `1em`, while that’s no longer the case: twbs#497
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SVGs imported as 1x1px instead

2 participants