Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquerymobile button clicked goes blue

I'm trying to prevent my button from flashing blue after clicking, anyone know what class causes this change? so I can override it

Cheers!

like image 652
williamsandonz Avatar asked Nov 24 '11 04:11

williamsandonz


3 Answers

For anyone landing here and wondering what to do with .ui-btn-active, I'd like to build on sqlisers answer with:

.ui-btn-active 
{ 
    color: #2F3E46 !important; 
    background: none !important; 
    background-color: #eee !important; 
    text-shadow: 0 /*{a-bup-shadow-x}*/ 
                 1px /*{a-bup-shadow-y}*/ 
                 0 /*{a-bup-shadow-radius}*/ 
                 #ffffff /*{a-bup-shadow-color}*/;  
}

Just change the color values to whatever you like.

like image 130
Andreas Bergström Avatar answered Nov 09 '22 04:11

Andreas Bergström


If this happens on your mobile, I'd suggest adding this to your stylesheet:

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

This will remove the default tap-highlight function of the webkit browser (on any mobile). Seems to work mostly on Android phones, but it does have affect on iOS devices as well.

like image 42
Leon Avatar answered Nov 09 '22 05:11

Leon


The class you're looking for is

.ui-btn-active
like image 6
sgliser Avatar answered Nov 09 '22 05:11

sgliser