Hello everyone!
I am trying to style my variant to be like circular variant pills which I was able to achieve, my problem is that I have added some code to add images to these variant pills, this is the HTML that handles that:
<div class="color-swatch variant-pill">
<input
type="radio"
id="{{ section.id }}-{{ option.position }}-{{ forloop.index0 }}"
name="{{ option.name }}"
value="{{ value | escape }}"
form="{{ product_form_id }}"
{% if option.selected_value == value %}
checked
{% endif %}
{% if option_disabled %}
class="disabled"
{% endif %}
>
<label for="{{ section.id }}-{{ option.position }}-{{ forloop.index0 }}">
{% if value == 'None' %}
<img src="https://cdn.shopify.com/s/files/1/0882/3272/2712/files/No_Frame_7.png?v=1727318193" alt="No Frame" class="variant-pill-img">
{% elsif value == 'Black' %}
<img src="https://cdn.shopify.com/s/files/1/0882/3272/2712/files/Black_Frame_5.png?v=1727318194" alt="Black Frame" class="variant-pill-img">
{% elsif value == 'White' %}
<img src="https://cdn.shopify.com/s/files/1/0882/3272/2712/files/White_Frame_5.png?v=1727318193" alt="White Frame" class="variant-pill-img">
{% elsif value == 'Wood' %}
<img src="https://cdn.shopify.com/s/files/1/0882/3272/2712/files/Wood_Frame_6.png?v=1727318193" alt="Wood Frame" class="variant-pill-img">
{% endif %}
</label>
</div>
But the problem is that my images aren’t fully covering the circles of the variant pills and there is an inside border in the circle (screenshot below)
How can I get the image to cover the entire circle?
Here is a link to the page: https://aestheticanvas.com/products/elegant-bloom-in-gold-flower-canvas-print?variant=49140741308696
Thank you in advance for your help!



