mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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.
This commit is contained in:
committed by
vivian-hu
parent
ffe0c3e8a5
commit
9b05c3cfba
@@ -204,7 +204,7 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
|
||||
opacity: 0.04;
|
||||
}
|
||||
|
||||
.mat-slide-toggle.cdk-focused & {
|
||||
.mat-slide-toggle:not(.mat-disabled).cdk-focused & {
|
||||
opacity: 0.12;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user