Skip to content

Commit

Permalink
fix: Change hidden tabs rendering mode
Browse files Browse the repository at this point in the history
Render hidden tabs with visibility hidden instead of display none.
This allow to properly compute internal dimentions.
  • Loading branch information
3y3 committed Dec 2, 2023
1 parent edb3eb9 commit 9e2e84a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/runtime/scss/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
}

.yfm-tab-panel {
display: none;
visibility: hidden;
height: 0;

&:first-child {
margin-top: 0 !important;
Expand All @@ -59,6 +60,7 @@
}

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

0 comments on commit 9e2e84a

Please sign in to comment.