mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(slide-toggle): blended ripples do not match spec (#12735)
* In order to fully align the slide-toggle with the 2018 specs, we need to reduce the opacity of the transient ripples because those blend together with the persistent ripple that has been introduced for hover/focus.
This commit is contained in:
committed by
Jeremy Elbourn
parent
2adced10c8
commit
e14841410f
@@ -191,7 +191,10 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
|
||||
pointer-events: none;
|
||||
|
||||
.mat-ripple-element:not(.mat-slide-toggle-persistent-ripple) {
|
||||
opacity: 0.16;
|
||||
// Although the specs describe an opacity of 16% for ripples if the slide-toggle is being
|
||||
// pressed, we need to reduce the opacity a bit because besides the transient ripples,
|
||||
// the persistent ripple will still show up and blend with the transient ripple.
|
||||
opacity: 0.12;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user