Skip to content

Commit

Permalink
Tabs: Fixed visibility of details summary nested in a hidden details
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Jan 7, 2015
1 parent eee32ee commit 89aa8bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/polyfills/details/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ summary {
visibility: visible !important;
}

%details-nested-in-hidden-details {
details {
summary {
display: none !important;
}
}
}

details {
// Prevent FOUC
&:not([open]) {
@extend %details-nested-in-hidden-details;
visibility: hidden;

> {
Expand All @@ -28,6 +37,10 @@ details {
visibility: visible;
}
}

.out {
@extend %details-nested-in-hidden-details;
}
}

.tabpanels {
Expand Down

0 comments on commit 89aa8bd

Please sign in to comment.