7

I have a dark form on my website and I want to change the color of the contacts autofill button when the input field is empty. How can this be achieved?

form example

1 Answer 1

10
input:not(input:-webkit-autofill)::-webkit-contacts-auto-fill-button {
    background-color: #fff;
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.