Variant buttons styling

Hi, I want to add inner bullet-point-like inner circles into the variant buttons like this:

Currently this is what I have: https://www.mansome.eu/collections/trimmers/products/shorty

Could anyone help me out with a CSS code please? Been struggling to get this working. Thanks!

1 Like

Update: I manage to insert the circle using below code, but shopify wouldn’t let me save this code due to content element.

.option-value.option-value-rounded.option-selected::before {
content: “”;
width: 20px;
height: 20px;
background-color: #d4af37;
border-radius: 50%;
position: absolute;
left: 10px;
}

**Hey @JustinasR **

Please follow below steps
Step 1: Go to Online Store → Theme → Edit code.
Step 2: Search file styles.css
Step 3: Paste the below code at bottom of the file → Save

Let me know if you need any other help.

.option-value .option-value-name {
    padding-left: 40px !important;;
}

.option-value .option-value-name:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid #d5d5d5;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 50%;
}

.option-value.option-selected .option-value-name:after {
    border: 4px solid #fdcc6b;
}

Thats amazing thanks a grand!

1 Like

Hi again! Actually I checked mobile, and there is a gap between the circe and text in mobile version only. With desktop its ok. Any idea what could be the issue here?

And if I switch languages at the bottom of the page using language selector, the gap is in the other variant.

Hey @JustinasR

Please follow below steps
Step 1: Go to Online Store → Theme → Edit code.
Step 2: Search file styles.css
Step 3: Paste the below code at bottom of the file → Save

Let me know if you need any other help.

.option-value .option-value-name {
    text-align: left;
}

That worked like a charm! Thank you so much!

1 Like