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 !
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024