Skip to content

Commit

Permalink
fix(tag): ensure tag keeps pill shape with single character (#5053)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored and joshblack committed Jan 23, 2020
1 parent 23a72e6 commit 7246188
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@

display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 $carbon--spacing-03;
height: 1.5rem;
max-width: 100%; // restricts size of contained elements
min-width: rem(32px); // ensures tag stays pill shaped;
margin: $carbon--spacing-02;
border-radius: rem(15px);

Expand Down

0 comments on commit 7246188

Please sign in to comment.