We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e0e29 commit f020245Copy full SHA for f020245
src/helix-ui/styles/core/hx-accordion-panel.less
@@ -1,14 +1,17 @@
1
hx-accordion-panel {
2
display: block;
3
4
- > :not([slot="header"]) {
+ // Hide content if closed (ignore header)
5
+ //
6
+ // Both :not() selectors have to be combined, because
7
+ // they cannot be selected in isolation.
8
+ // - :not([slot="header"]) is for modern browsers
9
+ // - :not(#toggle) is for polyfilled browsers
10
+ &:not([open]) > *:not([slot="header"]):not(#toggle) {
11
display: none;
12
}
13
- &[open] > * {
- display: block;
- }
-
14
+ > #toggle.hx-accordion-panel, // polyfill rewrite
15
> [slot="header"] {
16
padding: 0.5rem 0;
17
0 commit comments