Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, can't change the color of stroke and text on inactive tabs and remove the black stroke from the active ones. (attached screen)
I found some codes, but they didn't work. Please help me.Thank you
Solved! Go to the solution
This is an accepted solution.
Like this?
replace the code with this.
.product-form__input input[type=radio]:checked+label {
border: none;
}
.product-form__input--pill input[type=radio]+label:not(.product-form__input input[type=radio]:checked+label) {
border-color: lightgrey;
opacity: .7;
}
And Save.
Note: you can change the color of the border.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @DaryaLi
Would you mind to share your store URL? Thanks!
Thanks for the info, do you mean like this?
if it is check this one.
From your Shopify admin dashboard, click on "Online Store" and then "Themes".
Find the theme that you want to edit and click on "Actions" and then "Edit code".
In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
.product-form__input input[type=radio]:checked+label {
border: none;
}
.product-form__input--pill input[type=radio]+label:not(.product-form__input input[type=radio]:checked+label) {
border: 2px solid black;
font-weight: 600;
}
And Save.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
The first part of the code - yes, that's what I needed, thank you, the second part is not what I had in mind, I wanted to recolor the inactive tabs, not make them thicker
I have the design.
This is an accepted solution.
Like this?
replace the code with this.
.product-form__input input[type=radio]:checked+label {
border: none;
}
.product-form__input--pill input[type=radio]+label:not(.product-form__input input[type=radio]:checked+label) {
border-color: lightgrey;
opacity: .7;
}
And Save.
Note: you can change the color of the border.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Yeah, it's all done. Thank you so much !
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025