Skip to content

Commit

Permalink
fix(Tabs): fix tab nav and panel style (#1083)
Browse files Browse the repository at this point in the history
* fix(Tabs): remove padding & margin when tab panel inactive, close #1085 

* fix(Tabs): icon add line height reset, close #1076
  • Loading branch information
byeval authored and youluna committed Sep 2, 2019
1 parent 86eedfe commit 318605e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/tab/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
visibility: hidden;
opacity: 0;
height: 0;
margin: 0 !important;
padding: 0 !important;

&.active {
visibility: visible;
Expand Down
1 change: 1 addition & 0 deletions src/tab/scss/mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@

.#{$css-prefix}icon {
@include icon-size($tab-icon-size);
line-height: 1;
}

.#{$css-prefix}tabs-tab-close {
Expand Down
2 changes: 1 addition & 1 deletion src/tab/scss/variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ $tab-capsule-tab-border-line-color: $color-line1-3 !default;

/// border
/// @namespace statement/hover/tab
$tab-capsule-tab-border-line-color-hover: $color-brand1-6 !default;
$tab-capsule-tab-border-line-color-hover: $color-line1-3 !default;

/// border
/// @namespace statement/selected/tab
Expand Down

0 comments on commit 318605e

Please sign in to comment.