D
D
Daniel2017-07-12 15:11:48
css
Daniel, 2017-07-12 15:11:48

How to remove the blue background when clicking on an element?

Good to everyone!
There is a layout with the connected libraries materialize and hamburgers. Used slide out menu from materialize. When you click on the button to open and close the menu, a blue background appears, presumably above the element.
cf32f697486c4a7b840b51124e1871d1.png 16048619c1f9413f98beadb3b42f06a2.png

These elements are laid out with different tags, with different styles. The background for them is set. And it doesn't look like a background. I did not find a similar style in any of the libraries. This background disappears within about 0.5 seconds. if you hold down the pointer on the element. Tried disabling libraries. The effect disappears if both materialize and hamburgers are disabled. I don't understand what connection there is. The effect is present on mobile browsers Chrome and Safari.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Kargin, 2017-07-12
@Valtasaar

Apply to your problematic elements:
webkit-tap-highlight-color: rgba(0, 0, 0, 0);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question