Skip to content

Commit 249261a

Browse files
committed
fix(tabs): [tabs] 修复页签关闭按钮悬浮问题和buttoncard下关闭按钮的样式问题
1 parent cb49210 commit 249261a

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

packages/theme/src/tabs/index.less

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@
255255

256256
.@{tabs-prefix-cls}__icon-close {
257257
display: inline-flex;
258-
width: 14px;
259-
height: 14px;
258+
width: var(--tv-Tabs-icon-size-close);
259+
height: var(--tv-Tabs-icon-size-close);
260260
justify-content: center;
261261
align-items: center;
262262
}
@@ -588,6 +588,17 @@
588588
line-height: var(--tv-Tabs-button-card-item-height);
589589
border: 1px solid transparent;
590590

591+
.@{tabs-prefix-cls} {
592+
&__icon-close {
593+
margin-left: -20px;
594+
margin-right: 24px;
595+
}
596+
597+
&__item-separator {
598+
left: 1px;
599+
}
600+
}
601+
591602
&.is-disabled {
592603
color: var(--tv-Tabs-item-disabled-text-color);
593604

@@ -634,11 +645,7 @@
634645
display: inline-flex;
635646
justify-content: center;
636647
align-items: center;
637-
width: var(--tv-Tabs-icon-size-close);
638-
height: var(--tv-Tabs-icon-size-close);
639-
line-height: var(--tv-Tabs-icon-size-close);
640648
vertical-align: middle;
641-
overflow: hidden;
642649
transform-origin: 100% 50%;
643650
}
644651
}
@@ -1223,8 +1230,8 @@
12231230
height: 16px;
12241231
}
12251232

1226-
&&--top &--button-card &__item:last-child &__item-separator,
1227-
&&--top &--button-card &__item.is-active &__item-separator {
1233+
&&--button-card &__item:last-child &__item-separator,
1234+
&&--button-card &__item.is-active &__item-separator {
12281235
display: none;
12291236
}
12301237

0 commit comments

Comments
 (0)