{% sw_extends '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
{% block page_product_detail_configurator_option_radio_label %}
<label class="product-detail-configurator-option-label{% if isCombinableCls %} {{ isCombinableCls }}{% endif %} is-display-{{ displayType }}"
style="
{% if group.translated.customFields.onedot_variants_property_option_height_detail%} height: {{ group.translated.customFields.onedot_variants_property_option_height_detail }}px;{% endif %}
{% if group.translated.customFields.onedot_variants_property_option_width_detail%} min-width: {{ group.translated.customFields.onedot_variants_property_option_width_detail }}px;{% endif %}
"
title="{{ option.translated.name }}"
for="{{ optionIdentifier }}">
{% if displayType == 'color' and option.colorHexCode %}
<span class="mark" style="background-color: {{ option.colorHexCode }};"></span>
{% endif %}
{% if displayType == 'media' and media %}
<span class="label">{{ option.translated.name }}</span>
<img src="{{ media|sw_encode_media_url }}"
class="product-detail-configurator-option-image"
alt="{{ option.translated.name }}"/>
<span class="label">{{ option.translated.name }}</span>
{% elseif displayType == 'text' or (displayType == 'color') %}
<span class="label">{{ option.translated.name }}</span>
{% endif %}
</label>
{% endblock %}