Skip to content

Commit 4b2cc1a

Browse files
crisbetommalerba
authored andcommitted
fix(checkbox,radio): remove webkit tap highlights (#11349)
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.
1 parent 64a70ad commit 4b2cc1a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib/checkbox/checkbox.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ $_mat-checkbox-mark-stroke-size: 2 / 15 * $mat-checkbox-size !default;
187187
mat-elevation-transition-property-value();
188188

189189
cursor: pointer;
190+
-webkit-tap-highlight-color: transparent;
190191
}
191192

192193
.mat-checkbox-layout {

src/lib/radio/radio.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $mat-radio-ripple-radius: 25px;
99
// Top-level host container.
1010
.mat-radio-button {
1111
display: inline-block;
12+
-webkit-tap-highlight-color: transparent;
1213
}
1314

1415
// Inner label container, wrapping entire element.

0 commit comments

Comments
 (0)