Skip to content

Commit a2c2caf

Browse files
crisbetoVivian Hu
authored and
Vivian Hu
committed
fix(slide-toggle): showing focus ripple when clicking disabled control (#14055)
Seems to be a regression from #13957. Since the focus monitor still tracks focus, even though the element is disabled, the focus ripple will show up when clicking on a disabled toggle.
1 parent 7cb77b6 commit a2c2caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/slide-toggle/slide-toggle.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
204204
opacity: 0.04;
205205
}
206206

207-
.mat-slide-toggle.cdk-focused & {
207+
.mat-slide-toggle:not(.mat-disabled).cdk-focused & {
208208
opacity: 0.12;
209209
}
210210

0 commit comments

Comments
 (0)