Remove the outline from the anchor element on the Android device viewed with Firefox mobile

Firefox mobile on an Android tablet places a default outline around the snap element when it receives focus with a tap event. I cannot find a way to remove it, i.e. Equivalent

-webkit-tap-highlight-color: rgba(0, 0, 0, 0); 

for firefox.

+6
source share
1 answer

I don't think this is possible via css for Mozilla browsers.

http://peter.sh/experiments/vendor-prefixed-css-property-overview/

Perhaps you could bind the Javascript EventListener "onfocus" to a callback anchor that automatically blurs the element when it is focused. This is more like hacking, but it should do the job

0
source

Source: https://habr.com/ru/post/910101/


All Articles