Skip to content

Commit

Permalink
fix(core): Expand fix for disabled animation (#6129)
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea authored Nov 30, 2023
1 parent 47dff9f commit bcbafc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions projects/core/components/expand/expand.style.less
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
@import '@taiga-ui/core/styles/taiga-ui-local';

:host {
.transition(~'opacity, height, visibility');
display: block;
transition-property: opacity, height, visibility;
transition-duration: var(--tui-duration, 300ms);
opacity: 0;
// To trigger transition event when duration is 0
transition-delay: 1ms;

&._overflow {
overflow: hidden;
Expand Down
4 changes: 4 additions & 0 deletions projects/kit/components/tiles/tiles.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ tui-tiles {

tui-tile:not(._dragged) > .t-wrapper {
.transition(all);
// To trigger transition event when duration is 0
transition-delay: 1ms;
}
}

&:not(._dragged) tui-tile._dragged > .t-wrapper {
.transition(all);
// To trigger transition event when duration is 0
transition-delay: 1ms;
}
}

Expand Down

0 comments on commit bcbafc5

Please sign in to comment.