Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече
Архивирани

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

m_vance

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?

Всички отговори (4)

Website designers cannot change the focus ring color.

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

I believe

   -moz-user-select:-moz-none

will give you the behavior you want.

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

Unfortunately, this does not work either.

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