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 037a746 commit ed73e22Copy full SHA for ed73e22
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` because the focus has been redirected.
210
+ .mat-slide-toggle.cdk-keyboard-focused & {
211
opacity: 0.12;
212
213
0 commit comments