james
james

Reputation: 2663

Phonegap yellow highlight

I have a Samsung Captivate. Whenever I click on a button or image a yellow highlight shows up around it. I was wondering is this the phone itself? Or is it something I can turn off via PhoneGap.

Makes the app ugly ;)

Thanks

Upvotes: 4

Views: 2263

Answers (3)

abksharma
abksharma

Reputation: 598

button, li , a, *:hover 
{
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
}

above code did the trick for US.

Upvotes: 0

davejohnson
davejohnson

Reputation: 1447

Use -webkit-tap-highlight-color in your CSS.

See this answer as well: How to disable the orange circle effect when clicking on a link, in a WebView

Upvotes: 6

Matt Lacey
Matt Lacey

Reputation: 65564

If you view the page in the browser on the device do you get this same effect?

Do you get this when viewing websites on the device?

If yes to the above then you may be able to control this with CSS.

Upvotes: 0

Related Questions