Skip to content

Commit

Permalink
fix(collapse): corrige collapse vide
Browse files Browse the repository at this point in the history
  • Loading branch information
zellerbaptiste committed Jun 20, 2024
1 parent 294e289 commit 3e78d61
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core/style/collapse/_tool.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
@use 'module/preference';

@mixin collapse($className: collapse) {
--collapse-max-height: 0;
--collapse: -99999px;
--collapser: '';
--collapse-max-height: none;

overflow: hidden;
transition: visibility 0.3s;
// max-height: 0;
max-height: 0;
max-height: var(--collapse-max-height);

@include preference.reduce-motion {
Expand All @@ -31,10 +31,6 @@
}
}

#{&}:not(&--expanded):not(#{ns(collapsing)}) {
--collapse-max-height: 0;
}

#{&}:not(&--expanded) {
visibility: hidden;

Expand Down

0 comments on commit 3e78d61

Please sign in to comment.