We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5889ca commit db09c1cCopy full SHA for db09c1c
src/material/slide-toggle/slide-toggle.scss
@@ -210,7 +210,10 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
210
opacity: 0.04;
211
}
212
213
- .mat-slide-toggle:not(.mat-disabled).cdk-focused & {
+ // As per specifications, the focus ripple should only show up if the slide-toggle has
214
+ // been focused through keyboard. We cannot account for `cdk-program-focused` because clicking
215
+ // on the label causes the focus origin to be `program` due to the focus redirection.
216
+ .mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused & {
217
opacity: 0.12;
218
219
0 commit comments