I'm currently struggling to figure out how to override the default white background color of a form control's autocomplete in Bootstrap. The white background doesn't align well with my dark theme.
Whenever I enter something into an input field and use autocomplete, the background turns white:
https://i.sstatic.net/EZxoV.jpg
This is not ideal; I want it to be gray instead
A similar issue occurs when selecting an item from a dropdown menu - the background turns white as shown in the image below:
https://i.sstatic.net/XYei7.jpg
https://i.sstatic.net/ffN0D.jpg
I have managed to find a solution for customizing the select dropdown list by overriding Bootstrap using CSS, as seen below:
select.form-control:focus::-ms-value {
color: #ffffff; /* Set text to white for selected item */
background-color: transparent; /* remove background color for selected item*/
}
However, I am still searching for a way to change the default background color of autocomplete from white to the gray color in line with my theme. Thank you!