Skip to content

Commit

Permalink
fix(Tab): use visibility instead of display to control tab content sh…
Browse files Browse the repository at this point in the history
…ow. (alibaba-fusion#1058)

* fix(Tab): use visibility instead of display to control tab content show
  • Loading branch information
byeval authored and youluna committed Aug 28, 2019
1 parent 0d6e4ce commit 2bb776d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/tab/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,14 @@
}

&-tabpane {
display: none;
visibility: hidden;
opacity: 0;
height: 0;

&.active {
display: block;
visibility: visible;
opacity: 1;
height: auto;
}
}

Expand Down

0 comments on commit 2bb776d

Please sign in to comment.