When a size is selected, i want it only show an outline border around the selected size—no fill, no shadow, no background change. Just a simple border highlight, like in the second image. can you please help me with this?
1 Like
Hi
let try to add this CSS style:
.product-form__input--pill input[type=radio]:checked+label {
background-color: transparent;
color: initial;
border-color: rgb(var(--color-foreground));
}
don’t forget to change the border width to 2 in your theme config to see it better
but i want it shows border in the selected size
- if you want border for both state (unselect & selected) have same width => should update on theme config customization
- if you only want border for selected state larger => add more style for that class is: border-width: 2px;
color variant have different class name so the css style won’t apply for that
1 Like
so how can i edit that?
can you share me the url for that product to let me check
Hey @Senku
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT:
If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed