One needs to go over every single input and make sure it has a white background if it's editable.
Example:

Here's an example of annotations, that does it correctly: timestamp field has a dark background because it's read only.

Ideally the solution would work out of the box for all inputs.