Skip to content

Commit 8033e4a

Browse files
committed
fix(Tab): style compile fail
1 parent e3f5938 commit 8033e4a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tab/scss/mixin.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,13 @@
6666
&.active {
6767
&:before {
6868
@if $position == 'top' or $position == 'bottom' {
69-
width: calc(100% - 2 * #{$border-radius} - 2 * #{$line-padding-l});
70-
left: calc(0px + #{$border-radius} + #{$line-padding-l});
69+
@if get-compiling-value($border-radius) == 0 {
70+
width: calc(100% - 2 * #{$line-padding-l});
71+
left: calc(0px + #{$line-padding-l});
72+
} @else {
73+
width: calc(100% - 2 * #{$border-radius} - 2 * #{$line-padding-l});
74+
left: calc(0px + #{$border-radius} + #{$line-padding-l});
75+
}
7176
} @else {
7277
@if get-compiling-value($border-radius) == 0 {
7378
height: 100%;

0 commit comments

Comments
 (0)