Skip to content

Commit 3c01ef3

Browse files
committed
fix(material/slide-toggle): animations not disabled with NoopAnimationsModule (#25821)
Fixes that the animations of the slide toggle weren't disabled when using the `NoopAnimationsModule`. (cherry picked from commit 7ede2d0)
1 parent fa97572 commit 3c01ef3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/material/slide-toggle/slide-toggle.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,16 @@
7676
.mat-mdc-focus-indicator::before {
7777
border-radius: 50%;
7878
}
79+
80+
&._mat-animation-noopable {
81+
.mdc-switch__handle-track,
82+
.mdc-elevation-overlay,
83+
.mdc-switch__icon,
84+
.mdc-switch__handle::before,
85+
.mdc-switch__handle::after,
86+
.mdc-switch__track::before,
87+
.mdc-switch__track::after {
88+
transition: none;
89+
}
90+
}
7991
}

0 commit comments

Comments
 (0)