Ad
Trying To Change The Style In "Select An Option" Dropdown Of Woocommerce Checkout
I am trying to change the "Select an option" text's style, of WooCommerce checkout page, in bolder because it is faded and I get an accessibility error when scanned with WAVE.
I have tried this CSS but nothing changes, could you indicate me where am I mistaking?
Select a category {
color: #cccccc
}
span.select2-selection.select2-selection--single {
color: #000000;
}
span.select2-selection__placeholder {
font-family: Roboto;
font-size: 16px;
line-height: 18px;
font-weight: 400;
font-style: normal;
color: #cccccc;
background-color: #ffffff;
}
Or if there is an other CSS to do it?
The site is www.defkalionsa.gr
Ad
Answer
you can try the below css:
.select2-selection__placeholder {
font-weight:bold; /* for your "bolder" request" */
color:black; /* better than gray for accessibility */
}
if that does not work, you should clear browser cache, and check if other style declarations are taking precedence. You can temporarily add "!important" to overwrite other declarations.
.select2-selection__placeholder {
font-weight:bold!important;
color:black!important;
}
Ad
source: stackoverflow.com
Related Questions
- → CORS missmatch because of http
- → Building sitemap for 2 wordpress install under 1 domain
- → How to remove empty elements after class?(jQuery)
- → Get width of an element and apply to another relative to the first one?
- → How to remove caption p class from wordpress?
- → 301 Redirection from no-www to www in wordpress
- → Laravel 5 routing using prefix
- → WordPress - Header position Top, Left &Right
- → how to add rel=nofollow to some specific external links in wordpress
- → octobercms install error: database is not empty?
- → How to edit the index page of wordpress theme?
- → How to select a Post Type (Wordpress) to pass a filter in head?
- → What sort of URL structure should be used to display AMP HTML vs vanilla HTML
Ad