On a form I'm working on, Chrome is auto-filling the email and password fields. This is fine, however, Chrome changes the background colour to a pale yellow colour.
The design I'm working on is using light text on a dark background, so this really messes up the look of the form - I have stark yellow boxes and near-invisible white text. Once the field is focused, the fields return to normal.
Is it possible to stop Chrome changing the colour of these fields?
SASS
Adding one hour delay would pause any css changes on the input element.
This is more better rather than adding transition animation or inner shadow.
This is complex solution for this task.
This works fine, You can change input box styles as well as text styles inside input box :
Here you can use any color e.g.
white
,#DDD
,rgba(102, 163, 177, 0.45)
.But
transparent
won't work here.Additionally, you can use this to change the text color:
Advice: Don't use an excessive blur radius in the hundreds or thousands. This has no benefit and might put processor load on weaker mobile devices. (Also true for actual, outside shadows). For a normal input box of 20px height, 30px ‘blur radius’ will perfectly cover it.
try this for hide autofill style
Unfortunately strictly none of the above solutions worked for me in 2016 (a couple years after the question)
So here's the aggressive solution I use:
Basically, it deletes the tag while saving the value, and recreates it, then puts back the value.