Change border/outline color of quantity selector, Dawn 10.0 theme

I have tried everything I can think of to change the color of the quantity input border in Dawn 10.0, nothing is working. Yes, I have read all of the related discussion topics on this forum…

Has anyone been able to successfully change the quantity input border color?

Thanks!

Hi @TothDigital

This is Noah from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Here’s how its look on my end :

Hope this can help you solve the issue

Best regards,

Noah | PageFly

1 Like

Ahhh I never thought to unset box-shadow. That worked! Thanksss

Is there a way to also change the color of the + - buttons please?

Yes! If you want to change everything about the quantity selector, this would be the code to include in your main-product.liquid’s {%- style -%} section:

.quantity__label,
  .quantity__input,
  .quantity__button {
    color: {{ product.metafields.custom.text_color.value }};
  }
  .quantity:after {
    border-color: {{ product.metafields.custom.text_color.value }} !important;
    box-shadow: none !important;
  }

I tried making it even more flexible and creating some product level metafields (of type color) that let me select the colors for each of the products directly from the admin product page, not the theme code.

.product__title,
  .product__text,
  .price--large,
  .product__tax,
  .product__tax a {
    color: {{ product.metafields.custom.text_color.value }} !important;
  }
  .quantity__label,
  .quantity__input,
  .quantity__button {
    color: {{ product.metafields.custom.text_color.value }};
  }
  .quantity:after {
    border-color: {{ product.metafields.custom.text_color.value }} !important;
    box-shadow: none !important;
  }
  .form__label {
    color: {{ product.metafields.custom.text_color.value }} !important;
  }

Hello, this doesn’t changes my + and - icons and neither the number text color, do you know how to fix it?, I want them white

This should work, just add it to your main-product.liquid’s {%- style -%} section:

.product__title,
.product__text,
.price--large,
.product__tax,
.product__tax a {
color: {{ product.metafields.custom.text_color.value }} !important;
}
.quantity__label,
.quantity__input,
.quantity__button {
color:#ffffff;
}
.quantity:after {
border-color:#ffffff !important;
box-shadow: none !important;
}
.form__label {
color: #ffffff !important;
}