mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(checkbox): ripple not hiding after click/touch (#13295)
* Currently if someone toggles the slide-toggle through mouse interaction, the persistent ripple will show up besides one transient ripple. The persistent ripple should only show up if the native checkbox element was focused through keyboard. Fixes #13291
This commit is contained in:
committed by
vivian-hu
parent
3583913583
commit
afb035232d
@@ -266,7 +266,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
|
||||
opacity: 0.04;
|
||||
}
|
||||
|
||||
.mat-checkbox.cdk-focused & {
|
||||
.mat-checkbox.cdk-keyboard-focused & {
|
||||
opacity: 0.12;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user