We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f818796 commit 18603a7Copy full SHA for 18603a7
resources/views/themes/xylo/product-detail.blade.php
@@ -101,9 +101,10 @@
101
value="{{ $value->id }}"
102
{{ $index === 0 ? 'checked' : '' }}
103
>
104
- <label
+ <label
105
for="{{ $inputId }}"
106
- class="{{ strtolower($values->first()->attribute->name) === 'color' ? 'color-circle ' . strtolower($value->translated_value) : 'size-box' }}"
+ class="{{ strtolower($values->first()->attribute->name) === 'color' ? 'color-circle' : 'size-box' }}"
107
+ style="{{ strtolower($values->first()->attribute->name) === 'color' ? 'background-color:' . strtolower($value->value) . ';' : '' }}"
108
109
@if(strtolower($values->first()->attribute->name) === 'size')
110
{{ $value->translated_value }}
0 commit comments