There is the usual design of css buttons with the main color and hover. Everything works as it should, but not for mobile. There, after pressing the button, the color remains in the hover position. And only by "poking" with the finger into the screen again, hover changes to its original value. How to remove this flaw? (Everything that was on the topic is a problem with the accumulated value of hover in mobile. As for me, as you can see, it works, but incorrectly). Code below.
button{ position:relative; z-index:800; background:#fff; border:none; color:#a88854; font-size:16px; display:inline; text-align:center; width:48px; height:48px; cursor:pointer; left:0; top:0; line-height:48px; text-align:center; outline:none; -webkit-transition: all 0.2s ease-in; -moz-transition:all 0.2s ease-in; -o-transition: all 0.2s ease-in; -transition: all 0.2s ease-in; } button:hover{ color:#b8b8b8; }