Skip to content

Commit deea1a3

Browse files
authored
Update from Shopify for theme shopify-tailwind-starter-base/tailwind-admin-fi...
Committed from shop: Tailwind Starter Plus Admin Fields
1 parent d2d7474 commit deea1a3

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

snippets/product-variant-options.liquid

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,7 @@
6363
<span class="visually-hidden">{{ value | escape }}</span>
6464
{{ label_unavailable }}
6565
{%- endcapture -%}
66-
{%
67-
render 'swatch-input',
68-
id: input_id,
69-
name: input_name,
70-
value: value | escape,
71-
swatch: value.swatch,
72-
product_form_id: product_form_id,
73-
checked: value.selected,
74-
visually_disabled: option_disabled,
75-
shape: block.settings.swatch_shape,
76-
help_text: help_text,
77-
additional_props: input_dataset
78-
%}
66+
{% render 'swatch-input', id: input_id, name: input_name, value: value, swatch: value.swatch, product_form_id: product_form_id, checked: value.selected, visually_disabled: option_disabled, shape: block.settings.swatch_shape, help_text: help_text, additional_props: input_dataset %}
7967
{%- elsif picker_type == 'button' -%}
8068
<input
8169
type="radio"
@@ -118,3 +106,29 @@
118106
</option>
119107
{%- endif -%}
120108
{%- endfor -%}
109+
{% comment %}
110+
111+
This file has been rewritten to preserve the original behavior.
112+
113+
---
114+
Changes:
115+
- from: |-
116+
{%
117+
render 'swatch-input',
118+
id: input_id,
119+
name: input_name,
120+
value: value | escape,
121+
swatch: value.swatch,
122+
product_form_id: product_form_id,
123+
checked: value.selected,
124+
visually_disabled: option_disabled,
125+
shape: block.settings.swatch_shape,
126+
help_text: help_text,
127+
additional_props: input_dataset
128+
%}
129+
to: "{% render 'swatch-input', id: input_id, name: input_name, value: value, swatch:
130+
value.swatch, product_form_id: product_form_id, checked: value.selected, visually_disabled:
131+
option_disabled, shape: block.settings.swatch_shape, help_text: help_text, additional_props:
132+
input_dataset %}"
133+
position: 1807..2088
134+
{% endcomment %}

0 commit comments

Comments
 (0)