Skip to content

Commit

Permalink
fix(Icons): story icons no longer shrink to fit container (#12568)
Browse files Browse the repository at this point in the history
* feat: merge from upstream

* fix: increase icon story width to unshrink icons

* Revert "feat: merge from upstream"

This reverts commit 661628e.

* fix: add min width to svg

Co-authored-by: TJ Egan <tw15egan@gmail.com>
  • Loading branch information
jnm2377 and tw15egan authored Nov 9, 2022
1 parent 8791205 commit d45b5aa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/react/src/components/Icons/Icons.stories.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@
//
.demo-icon-example {
display: flex;
width: 10rem;
width: 15rem;
justify-content: space-between;
margin: 2rem;
}

.demo-icon-example:nth-child(1) svg {
min-width: 1rem;
}

.demo-icon-example:nth-child(2) svg {
min-width: 1.25rem;
}

.demo-icon-example:nth-child(3) svg {
min-width: 2rem;
}

0 comments on commit d45b5aa

Please sign in to comment.