Skip to content

Commit 561a38d

Browse files
authored
fix(material/checkbox): disable ripple animation under noop animations module (#22706)
Fixes that the checkbox doesn't disable its ripple animation when the noop animations module is enabled.
1 parent da57e01 commit 561a38d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/checkbox/checkbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[matRippleDisabled]="_isRippleDisabled()"
2222
[matRippleRadius]="20"
2323
[matRippleCentered]="true"
24-
[matRippleAnimation]="{enterDuration: 150}">
24+
[matRippleAnimation]="{enterDuration: _animationMode === 'NoopAnimations' ? 0 : 150}">
2525
<span class="mat-ripple-element mat-checkbox-persistent-ripple"></span>
2626
</span>
2727
<span class="mat-checkbox-frame"></span>

0 commit comments

Comments
 (0)