Skip to content

Commit eec25b3

Browse files
fix(styling): Removes tap highlight color visible on mobile Safari for checkbox, radio, iconbutton, and textfield.
PiperOrigin-RevId: 499279539
1 parent 2f112fa commit eec25b3

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

checkbox/lib/_checkbox.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ $_checkmark-bottom-left: 7px, -14px;
4747
position: relative;
4848
vertical-align: top; // Fix extra space when placed inside display: block
4949
width: 48px;
50+
-webkit-tap-highlight-color: transparent;
5051
}
5152

5253
input {

iconbutton/lib/_shared.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
:host {
2121
display: inline-flex;
2222
outline: none;
23+
-webkit-tap-highlight-color: transparent;
2324
}
2425

2526
:host([disabled]) {

radio/lib/_radio.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
@use './radio-theme';
1313

1414
@mixin static-styles() {
15+
:host {
16+
-webkit-tap-highlight-color: transparent;
17+
}
18+
1519
.md3-radio {
1620
display: inline-flex;
1721
position: relative;

textfield/lib/_shared.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
:host {
1818
display: inline-flex;
1919
outline: none;
20+
-webkit-tap-highlight-color: transparent;
2021
}
2122

2223
.md3-text-field {

0 commit comments

Comments
 (0)