I’m in the really big problem I cant able to change Email and Password input element background color in Shopify site in both login and register page.
I just realized that the problem is only in chrome only.
I’m in the really big problem I cant able to change Email and Password input element background color in Shopify site in both login and register page.
I just realized that the problem is only in chrome only.
2
Answers
Try putting this in your css, it should override the current styles…
However
if its auto-complete thats only happening in chrome then this should fix it:
You can use any color e.g. white, #DDD, rgba(102, 163, 177, 0.45).
Additionally, you can use this to change the text color:
From MDN:
The browser assings a weight based on the selector types that arre applied to the same element, the one with the bigger weight gets applied, so in your case the selector
#customer_login input[type="email"]
has a bigger weight than even an inline style, so adding!important
to your rule does the trick here (taken from the same topic):TL;DR This does the trick: