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 2dff301 commit 93db2d7Copy full SHA for 93db2d7
src/lib/slide-toggle/slide-toggle.scss
@@ -204,7 +204,10 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
204
opacity: 0.04;
205
}
206
207
- .mat-slide-toggle.cdk-focused & {
+ // As per specifications, the focus ripple should only show up if the slide-toggle has
208
+ // been focused through keyboard. We cannot account for `cdk-program-focused` because clicking
209
+ // on the label causes the focus origin to be `program` due to the focus redirection.
210
+ .mat-slide-toggle.cdk-keyboard-focused & {
211
opacity: 0.12;
212
213
0 commit comments