Skip to content

Commit

Permalink
fix: some tabs style (#17500)
Browse files Browse the repository at this point in the history
* 🐛 Fix Tabs disabled tab style

close #17468

* 🐛 Fix Tabs next icon right 2px bug

close #17477
  • Loading branch information
afc163 authored and zombieJ committed Jul 7, 2019
1 parent 47b85c9 commit 1d2bc07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 4 additions & 0 deletions components/tabs/style/card-style.less
Expand Up @@ -29,6 +29,10 @@
border-color: @border-color-split;
border-bottom: @border-width-base solid @component-background;
}
&&-card &-card-bar &-tab-disabled {
color: @tabs-card-active-color;
color: @disabled-color;
}
&&-card &-card-bar &-tab-inactive {
padding: 0;
}
Expand Down
22 changes: 9 additions & 13 deletions components/tabs/style/index.less
Expand Up @@ -197,18 +197,18 @@
margin-right: 8px;
}

&-active {
color: @tabs-highlight-color;
font-weight: 500;
}

&-disabled {
&,
&:hover {
color: @disabled-color;
cursor: not-allowed;
}
}

&-active {
color: @tabs-highlight-color;
font-weight: 500;
}
}
}

Expand Down Expand Up @@ -259,14 +259,9 @@
.@{tab-prefix-cls}-right-bar {
height: 100%;
border-bottom: 0;
&-tab-prev,
&-tab-next {
width: @tabs-scrolling-size;
height: 0;
transition: height 0.3s @ease-in-out, opacity 0.3s @ease-in-out, color 0.3s @ease-in-out;
}
&-tab-prev.@{tab-prefix-cls}-tab-arrow-show,
&-tab-next.@{tab-prefix-cls}-tab-arrow-show {

.@{tab-prefix-cls}-tab-arrow-show,
.@{tab-prefix-cls}-tab-arrow-show {
width: 100%;
height: @tabs-scrolling-size;
}
Expand Down Expand Up @@ -320,6 +315,7 @@
}

.@{tab-prefix-cls}-tab-next {
right: 0;
bottom: 0;
width: 100%;
height: @tabs-scrolling-size;
Expand Down

0 comments on commit 1d2bc07

Please sign in to comment.