Skip to content

Commit abac53c

Browse files
committed
fix(material/timepicker): glitchy animation of legacy animations are enabled (#34140)
Along the same lines as #33874. Adds an explicit fill mode so the animations don't glitch. (cherry picked from commit e0aacfe)
1 parent 0c59612 commit abac53c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/material/timepicker/timepicker.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ mat-timepicker {
6060
}
6161

6262
.mat-timepicker-panel-animations-enabled {
63-
animation: _mat-timepicker-enter 120ms cubic-bezier(0, 0, 0.2, 1);
63+
// Note: explicitly setting the fill mode avoids a glitchy
64+
// animation if legacy animations are enabled. See #33851.
65+
animation: _mat-timepicker-enter 120ms cubic-bezier(0, 0, 0.2, 1) forwards;
6466

6567
&.mat-timepicker-panel-exit {
66-
animation: _mat-timepicker-exit 100ms linear;
68+
animation: _mat-timepicker-exit 100ms linear forwards;
6769
}
6870
}
6971

0 commit comments

Comments
 (0)