Added <label> compatibility to groups

This commit is contained in:
Yohn 2024-11-11 22:10:47 -05:00
parent fe78285302
commit b1fcd44b73
241 changed files with 10390 additions and 3095 deletions

View file

@ -10,6 +10,15 @@
display: block;
margin-bottom: var(#{$css-var-prefix}spacing);
&:not([open]) summary ~ * {
max-height: 0;
overflow: hidden;
opacity: 0;
transition:
max-height var(#{$css-var-prefix}transition),
opacity var(#{$css-var-prefix}transition);
}
summary {
line-height: 1rem;
list-style-type: none;
@ -82,7 +91,9 @@
}
}
}
//!
//!
//!
// Open
&[open] {
> summary {
@ -97,6 +108,14 @@
&::after {
transform: rotate(0);
}
~ * {
max-height: 100; /* Initial max height for content */
opacity: 1;
transition:
max-height var(#{$css-var-prefix}transition),
opacity var(#{$css-var-prefix}transition);
}
}
}
}