From 8e2ff1fbeb7e620c375d5d9b20102441dce9fbba Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 11 Jul 2018 17:04:43 +0200 Subject: [PATCH] fix(ripple): remove webkit touch highlights from ripple containers (#12082) Since the ripples are feedback enough that the element was touched, we should disable the native feedback on touch devices so it doesn't overlap with the ripples. These changes go through the various clickable ripple triggers and remove the Webkit highlighting. --- src/lib/button-toggle/button-toggle.scss | 1 + src/lib/chips/chips.scss | 1 + src/lib/core/option/option.scss | 1 + src/lib/list/list.scss | 1 + src/lib/stepper/step-header.scss | 1 + src/lib/tabs/tab-nav-bar/tab-nav-bar.scss | 1 + 6 files changed, 6 insertions(+) diff --git a/src/lib/button-toggle/button-toggle.scss b/src/lib/button-toggle/button-toggle.scss index ece5c9d34ae..0d9623b3cc0 100644 --- a/src/lib/button-toggle/button-toggle.scss +++ b/src/lib/button-toggle/button-toggle.scss @@ -42,6 +42,7 @@ $mat-button-toggle-border-radius: 2px !default; .mat-button-toggle { white-space: nowrap; position: relative; + -webkit-tap-highlight-color: transparent; // Similar to components like the checkbox, slide-toggle and radio, we cannot show the focus // overlay for `.cdk-program-focused` because mouse clicks on the