fix(slide-toggle): remove webkit tap highlight (#12708)

* Since the slide-toggle already has the ripples as feedback indicator, the webkit tap highlight can be removed to make the slide-toggle behave more like a native (Android) switch component on touch devices.
This commit is contained in:
Paul Gschwendtner
2018-08-21 20:41:06 +02:00
committed by Jeremy Elbourn
parent 51da6a6806
commit ba55d04d24
+2 -2
View File
@@ -21,14 +21,14 @@ $mat-slide-toggle-bar-track-width: $mat-slide-toggle-bar-width - $mat-slide-togg
max-width: 100%;
line-height: $mat-slide-toggle-height;
white-space: nowrap;
outline: none;
// Disable user selection to ensure that dragging is smooth without grabbing
// some elements accidentally.
@include user-select(none);
outline: none;
-webkit-tap-highlight-color: transparent;
&.mat-checked {
.mat-slide-toggle-thumb-container {