Skip to content

Commit

Permalink
fix(Tag): text overflow for custom height
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkahn committed May 27, 2019
1 parent 538e1d4 commit 5b52372
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
13 changes: 0 additions & 13 deletions src/tag/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,19 +123,6 @@

&tag-closable {
position: relative;

&.#{$css-prefix}tag-large > .#{$css-prefix}tag-body {
max-width: calc(100% - #{$tag-size-l-icon-font + $tag-size-l-padding-lr});
}

&.#{$css-prefix}tag-medium > .#{$css-prefix}tag-body {
max-width: calc(100% - #{$tag-size-m-icon-font + $tag-size-m-padding-lr});
}

&.#{$css-prefix}tag-small > .#{$css-prefix}tag-body {
max-width: calc(100% - #{$tag-size-s-icon-font + $tag-size-s-padding-lr});
}

> .#{$css-prefix}tag-close-btn {
display: inline-block;
vertical-align: middle;
Expand Down
1 change: 1 addition & 0 deletions src/tag/scss/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

&.#{$css-prefix}tag-closable > .#{$css-prefix}tag-body {
padding: 0 0 0 $paddingLr;
max-width: calc(100% - #{$_marginLeft + $iconSize + $paddingLr});
}
&[dir=rtl].#{$css-prefix}tag-closable > .#{$css-prefix}tag-body {
padding: 0 $paddingLr 0 0;
Expand Down

0 comments on commit 5b52372

Please sign in to comment.