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

Update SVG build script to set custom dimensions #305

Merged
merged 4 commits into from Jun 23, 2020
Merged

Conversation

mdo
Copy link
Member

@mdo mdo commented Jun 18, 2020

This removes the fixed width and height override from the build script and instead detects the viewBox values and sets the width and height from there. The goal of this is allow for different aspect ratios in icons. My gut says everything should be 16px tall to address vertical align issues, but then have some variable width.

To start, this will be for select icons (possibly the new Bootstrap logo and our upcoming badge icons), and then potentially redoing artboards in Figma for super narrow icons so they only take up the required space. That'll come later I think though.

@mdo mdo added the enhancement New feature or request label Jun 18, 2020
mdo added 4 commits June 22, 2020 22:51
This removes the fixed width and height override from the build script and instead detects the viewBox values and sets the width and height from there. The goal of this is allow for different aspect ratios in icons. My gut says everything should be 16px tall to address vertical align issues, but then have some variable width.

To start, this will be for select icons (possibly the new Bootstrap logo and our upcoming badge icons), and then potentially redoing artboards in Figma for super narrow icons so they only take up the required space. That'll come later I think though.
@mdo mdo added this to To do in v1.0.0-alpha5 via automation Jun 23, 2020
@mdo mdo merged commit af833c0 into master Jun 23, 2020
v1.0.0-alpha5 automation moved this from To do to Done Jun 23, 2020
@mdo mdo deleted the svg-dimensions branch June 23, 2020 06:07
@mdo mdo mentioned this pull request Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
v1.0.0-alpha5
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant