Skip to content

Commit

Permalink
fix(checkbox,radio): remove webkit tap highlights (#11349)
Browse files Browse the repository at this point in the history
Removes the overlays that get added by mobile Webkit browsers when tapping on checkboxes and radio buttons. The overlays look weird, especially when combined with our ripples.
  • Loading branch information
crisbeto authored and mmalerba committed May 22, 2018
1 parent 64a70ad commit 4b2cc1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/checkbox/checkbox.scss
Expand Up @@ -187,6 +187,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
mat-elevation-transition-property-value();

cursor: pointer;
-webkit-tap-highlight-color: transparent;
}

.mat-checkbox-layout {
Expand Down
1 change: 1 addition & 0 deletions src/lib/radio/radio.scss
Expand Up @@ -9,6 +9,7 @@ $mat-radio-ripple-radius: 25px;
// Top-level host container.
.mat-radio-button {
display: inline-block;
-webkit-tap-highlight-color: transparent;
}

// Inner label container, wrapping entire element.
Expand Down

0 comments on commit 4b2cc1a

Please sign in to comment.