Skip to content

Commit

Permalink
fix(material/checkbox): disable ripple animation under noop animation…
Browse files Browse the repository at this point in the history
…s module (#22706)

Fixes that the checkbox doesn't disable its ripple animation when the noop animations module is enabled.
  • Loading branch information
crisbeto committed May 21, 2021
1 parent da57e01 commit 561a38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/material/checkbox/checkbox.html
Expand Up @@ -21,7 +21,7 @@
[matRippleDisabled]="_isRippleDisabled()"
[matRippleRadius]="20"
[matRippleCentered]="true"
[matRippleAnimation]="{enterDuration: 150}">
[matRippleAnimation]="{enterDuration: _animationMode === 'NoopAnimations' ? 0 : 150}">
<span class="mat-ripple-element mat-checkbox-persistent-ripple"></span>
</span>
<span class="mat-checkbox-frame"></span>
Expand Down

0 comments on commit 561a38d

Please sign in to comment.