Variant Selector & Quantity Black when applying a transparent background

Solved

Variant Selector & Quantity Black when applying a transparent background

lucyh
Shopify Partner
13 0 4

Hey all! Super appreciate the help, I applied a transparent color scheme so that I could apply a background image, which all worked great. However it makes the Variant selector, quantity selector and button black. I know how to fix the button, but how do I solve the issue for the other two? 

I would love for it to be white, instead of black (or is there a way to set the default color to white, instead of black when messing with transparency?) 

 

Screenshot 2025-05-09 155518.png

Accepted Solution (1)

goldi07
Navigator
360 38 69

This is an accepted solution.

Hello @lucyh Thanks for the screenshot and details! When you apply a transparent background to the section (like for a background image), the variant selector and quantity inputs often default to black because the input background becomes transparent too, and their text color stays dark — blending with the image or appearing black.

 

How to Fix the Variant & Quantity Selectors
You’ll need to manually style the background and text color of these form elements in your CSS to override the default behavior when transparency is applied.

Here’s what you should do in your theme’s CSS (e.g., in theme.css or base.css, depending on the theme):

.select__select,
.quantity__input,
.select, 
.quantity {
  background-color: white !important;
  color: #000 !important;
  border: 1px solid #ccc; /* optional: improves visibility */
}

/* Optional: match padding and border-radius if needed */
.select__select,
.quantity__input {
  padding: 10px;
  border-radius: 4px;
}

 

 

Where to Add This:
. Go to Online Store > Themes > Edit Code

. Find your theme's CSS file (likely in assets/theme.css or base.css)

. Paste the code at the bottom of the file

This forces the background of the dropdown (variant selector) and quantity input field to be white, regardless of transparency applied to the section or card they sit on.

 

try this ..if you need any help plz let me know 

Thank you 😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here

View solution in original post

Replies 5 (5)

goldi07
Navigator
360 38 69

This is an accepted solution.

Hello @lucyh Thanks for the screenshot and details! When you apply a transparent background to the section (like for a background image), the variant selector and quantity inputs often default to black because the input background becomes transparent too, and their text color stays dark — blending with the image or appearing black.

 

How to Fix the Variant & Quantity Selectors
You’ll need to manually style the background and text color of these form elements in your CSS to override the default behavior when transparency is applied.

Here’s what you should do in your theme’s CSS (e.g., in theme.css or base.css, depending on the theme):

.select__select,
.quantity__input,
.select, 
.quantity {
  background-color: white !important;
  color: #000 !important;
  border: 1px solid #ccc; /* optional: improves visibility */
}

/* Optional: match padding and border-radius if needed */
.select__select,
.quantity__input {
  padding: 10px;
  border-radius: 4px;
}

 

 

Where to Add This:
. Go to Online Store > Themes > Edit Code

. Find your theme's CSS file (likely in assets/theme.css or base.css)

. Paste the code at the bottom of the file

This forces the background of the dropdown (variant selector) and quantity input field to be white, regardless of transparency applied to the section or card they sit on.

 

try this ..if you need any help plz let me know 

Thank you 😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here
lucyh
Shopify Partner
13 0 4

This worked, thanks to much!! 

goldi07
Navigator
360 38 69

M glad 😊 that worked if you need any help please let me know 😊 

Thank you 😊

Was I helpful?

Buy me a coffee


APPS BY US :

Professional Customer Accounts APP


Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -Goldi184507@gmail.com - Skype: live:.cid.819bad8ddb52736c -Whatsapp: +919317950519
Checkout Some Free Sections Here

DrewOswald
Shopify Partner
25 8 9

Hello, you should change the background color for that color scheme back to a solid color instead of transparent. #FFFFFF is good this will be the background color for your inputs.

DrewOswald_1-1746852476040.png

 

 

Then make the background transparent by adding this CSS to the Custom CSS section in "Product information":

product-info {
background: transparent;
}

 

DrewOswald_0-1746852444547.png

 

devDrew webDev · Need a developer? Send me a DM.
lucyh
Shopify Partner
13 0 4

This worked too, and super simple! Appreciate it!