@@ -30,12 +30,15 @@ $tag-round-adjustment: 0 !default;
3030@import " ~@blueprintjs/core/src/components/tag/tag" ;
3131
3232.#{$eccgui } -tag__item {
33+ --eccgui-tag-border-width : 1px ;
34+
3335 flex-grow : 0 ;
3436 flex-shrink : 0 ;
3537 min-width : calc (#{$tag-height } - 2px );
3638 min-height : calc (#{$tag-height } - 2px );
3739 max-height : calc (#{$tag-height } - 2px );
3840 padding : 0 $tag-padding-top ;
41+ line-height : calc (#{$tag-height } - 2px );
3942
4043 & .#{$ns } -round {
4144 border-radius : $tag-height * 0.5 ;
@@ -55,11 +58,12 @@ $tag-round-adjustment: 0 !default;
5558 }
5659
5760 & .#{$eccgui } -tag--small {
58- min-width : calc (#{$tag-height-small } + #{$tag-padding-small } - 2 px );
59- min-height : calc (#{$tag-height-small } + #{$tag-padding-small } - 2 px );
60- max-height : calc (#{$tag-height-small } + #{$tag-padding-small } - 2 px );
61+ min-width : calc (#{$tag-height-small } + #{$tag-padding-small } );
62+ min-height : calc (#{$tag-height-small } + #{$tag-padding-small } );
63+ max-height : calc (#{$tag-height-small } + #{$tag-padding-small } );
6164 padding : 0 $tag-padding-small ;
62- line-height : calc (#{$tag-height-small } - 2px );
65+ font-size : calc (#{$eccgui-size-typo-tag } - 1px );
66+ line-height : calc (#{$tag-height-small } + #{$tag-padding-small } );
6367
6468 & .#{$ns } -round {
6569 border-radius : $tag-height-small * 0.5 ;
@@ -75,7 +79,7 @@ $tag-round-adjustment: 0 !default;
7579 min-height : calc (#{$tag-height-large } + #{$tag-padding-large } - 2px );
7680 max-height : calc (#{$tag-height-large } + #{$tag-padding-large } - 2px );
7781 font-size : $eccgui-size-typo-tag-large ;
78- line-height : calc (#{$tag-height-large } - 2px );
82+ line-height : calc (#{$tag-height-large } + #{ $tag-padding-large } - 2px );
7983
8084 & .#{$ns } -round {
8185 border-radius : $tag-height-large * 0.5 ;
@@ -138,7 +142,7 @@ $tag-round-adjustment: 0 !default;
138142
139143.#{$ns } -tag {
140144 border-style : solid ;
141- border-width : 1 px ;
145+ border-width : var ( --eccgui-tag-border-width ) ;
142146
143147 & :not ([class *= " #{$ns}-intent-" ]) {
144148 --eccgui-tag-bg : #{$tag-default-color } ;
0 commit comments