Skip to content

Commit 5d01768

Browse files
authored
Merge pull request #443 from jdkahn/tag/441
fix(Tag): close button not showing in select when text too long
2 parents 0afec13 + fd341f8 commit 5d01768

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/tag/main.scss

+12
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,18 @@
121121
&tag-closable {
122122
position: relative;
123123

124+
&.#{$css-prefix}tag-large > .#{$css-prefix}tag-body {
125+
max-width: calc(100% - #{$tag-size-l-height});
126+
}
127+
128+
&.#{$css-prefix}tag-medium > .#{$css-prefix}tag-body {
129+
max-width: calc(100% - #{$tag-size-m-height});
130+
}
131+
132+
&.#{$css-prefix}tag-small > .#{$css-prefix}tag-body {
133+
max-width: calc(100% - #{$tag-size-s-height});
134+
}
135+
124136
> .#{$css-prefix}tag-close-btn {
125137
display: inline-block;
126138
vertical-align: middle;

src/tag/scss/mixin.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
line-height: $height - $borderWidth * 2;
2121
font-size: 0;
2222

23-
$_marginLeft: $height / 4 - 1px;
23+
$_marginLeft: $iconSize;
2424

2525
> .#{$css-prefix}tag-body {
2626
font-size: $fontSize;

0 commit comments

Comments
 (0)