Solved

Variant picker: change border and text color

DaryaLi
Tourist
8 0 1

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
Screenshot 2024-05-08 at 20.03.35.png

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
6087 1465 1805

This is an accepted solution.

Like this? 

Made4uoRibe_0-1715194368016.png

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 6 (6)

Made4uo-Ribe
Shopify Partner
6087 1465 1805

Hi @DaryaLi 

Would you mind to share your store URL? Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


DaryaLi
Tourist
8 0 1
Made4uo-Ribe
Shopify Partner
6087 1465 1805

Thanks for the info, do you mean like this? 

Made4uoRibe_0-1715193361634.png

 

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


DaryaLi
Tourist
8 0 1

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.Screenshot 2024-05-08 at 20.44.25.png

Made4uo-Ribe
Shopify Partner
6087 1465 1805

This is an accepted solution.

Like this? 

Made4uoRibe_0-1715194368016.png

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


DaryaLi
Tourist
8 0 1

Yeah, it's all done. Thank you so much !