Skip to content

Commit

Permalink
fix(styling): Removes tap highlight color visible on mobile Safari fo…
Browse files Browse the repository at this point in the history
…r checkbox, radio, iconbutton, and textfield.

PiperOrigin-RevId: 499279539
  • Loading branch information
material-web-copybara authored and copybara-github committed Jan 3, 2023
1 parent 2f112fa commit eec25b3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions checkbox/lib/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ $_checkmark-bottom-left: 7px, -14px;
position: relative;
vertical-align: top; // Fix extra space when placed inside display: block
width: 48px;
-webkit-tap-highlight-color: transparent;
}

input {
Expand Down
1 change: 1 addition & 0 deletions iconbutton/lib/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
:host {
display: inline-flex;
outline: none;
-webkit-tap-highlight-color: transparent;
}

:host([disabled]) {
Expand Down
4 changes: 4 additions & 0 deletions radio/lib/_radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
@use './radio-theme';

@mixin static-styles() {
:host {
-webkit-tap-highlight-color: transparent;
}

.md3-radio {
display: inline-flex;
position: relative;
Expand Down
1 change: 1 addition & 0 deletions textfield/lib/_shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:host {
display: inline-flex;
outline: none;
-webkit-tap-highlight-color: transparent;
}

.md3-text-field {
Expand Down

0 comments on commit eec25b3

Please sign in to comment.