Customizing Colors of Drop Down Selection Fields (Country, State) in Checkout
-
We have not been able to customize the font or background of the drop down option list that appears when users click to select their Country or State in woocommerce checkout.
We have been using the Chrome browser inspector to look at what css classes to apply the style to, but nothing seems to have an effect.
The url of the checkout page in question is https://darklightfx.com/checkout
I was able to style the initial value and the selected value, but not the drop down list, which currently has a white background and light gray text that is hard to read. I’m not sure if its possible to change that white background (possibly a browser locked setting?) but I’d like to change the text to black so its easily readable at the least.
So far I have these classes customized for the field’s initial/base color, and then the color of the text after you select an option:
.select2-container--default .select2-selection--single { background-color:hsl(0,0%,18%); border:0; color:white; } #select2-billing_country-container, #select2-billing_state-container, #select2-shipping_state-container, #select2-shipping_country-container { color:hsl(0,0%,81%); }
Any help is appreciated, thank you!
- The topic ‘Customizing Colors of Drop Down Selection Fields (Country, State) in Checkout’ is closed to new replies.