When using my web app on an android WebView, I've noticed that whenever I click on something or navigate somewhere, a blue highlight appears on the container div. It sometimes disappears quickly, but other times it remains until clicking elsewhere.
I'm uncertain if this issue is related to focus, tab order, WebView settings, or something entirely different.
To address this problem, I attempted adding the following CSS:
* {
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
-webkit-focus-ring-color: rgba(0, 0, 0, 0);
}
I also experimented with adjusting the webView Settings:
webSettings.setLightTouchEnabled(false);
Unfortunately, these attempts did not resolve the issue.
Is there a way to prevent WebView from focusing on these divs or make the highlight color invisible/transparent?