X
Tap here to go to the mobile version of the site.

Support Forum

What code do I need to edit to change the long press color (orange) to one that works better with my website?

Posted

I am building a custom website for a client to be used exclusively for Firefox on an Android tablet. When a link is long pressed, its background color always turns to the Mozilla orange. This color goes against the client's palette and looks out of place. Is there CSS code to manipulate to alter this color state?

I am building a custom website for a client to be used exclusively for Firefox on an Android tablet. When a link is long pressed, its background color always turns to the Mozilla orange. This color goes against the client's palette and looks out of place. Is there CSS code to manipulate to alter this color state?

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11

More Information

kbrosnan
  • Moderator
582 solutions 3847 answers

Website designers cannot change the focus ring color.

Website designers cannot change the focus ring color.

Question owner

Is there another way to change or remove the focus ring color (besides CSS) ?

Is there another way to change or remove the focus ring color (besides CSS) ?
kbrosnan
  • Moderator
582 solutions 3847 answers

I believe

   -moz-user-select:-moz-none

will give you the behavior you want.

https://developer.mozilla.org/en-US/docs/CSS/user-select

I believe -moz-user-select:-moz-none will give you the behavior you want. https://developer.mozilla.org/en-US/docs/CSS/user-select

Question owner

Unfortunately, this does not work either.

The -webkit version of this works in Chrome for Android, though it also disables the link.

Unfortunately, this does not work either. The ''-webkit'' version of this works in Chrome for Android, though it also disables the link.