Does anyone on here know what I am referring to?
https://jsfiddle.net/xmdq14a2/1/
To reproduce, tap one of the buttons on a mobile device.
Only occurs via mobile not desktop.
I think it may be this?
:active
How would I disable it from occurring when tapping a button?
What would I put inside here?
button:active{
}
or, maybe that is not it.
It was something I noticed and was wondering why it was there, and can it be removed?
Chrome mobile phone. android.
testing: https://jsfiddle.net/tpq7gkbf/
This seems to work.
button,
a,
input,
select,
textarea {
-webkit-tap-highlight-color: transparent;
/* For iOS */
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
/* For Android */
outline: none;
/* To remove focus outline */
}
This is all I would need then.
button, a {
-webkit-tap-highlight-color: transparent;
}
I just have buttons and links.
But should I even be using it?
https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
I tested it and it seems to work fine on my phone.
no issues.