Created
January 30, 2024 08:43
-
-
Save liamgriffin/7cf583cf2fde16eec7fb0ea46045cd43 to your computer and use it in GitHub Desktop.
Color Swatches Input Label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<label | |
for="{{ id }}" | |
title="{{ value }}" | |
class="swatch-input__label{% if shape == 'square' %} swatch-input__label--square{% endif %}" | |
> | |
{% render 'swatch', swatch: value.swatch, shape: shape %} | |
<span class="visually-hidden">{{ value }}</span> | |
{{ help_text }} | |
</label> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment