Skip to content

Commit 18603a7

Browse files
committed
fix: use base color value for color boxes to ensure consistent rendering across all languages
1 parent f818796 commit 18603a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/views/themes/xylo/product-detail.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@
101101
value="{{ $value->id }}"
102102
{{ $index === 0 ? 'checked' : '' }}
103103
>
104-
<label
104+
<label
105105
for="{{ $inputId }}"
106-
class="{{ strtolower($values->first()->attribute->name) === 'color' ? 'color-circle ' . strtolower($value->translated_value) : 'size-box' }}"
106+
class="{{ strtolower($values->first()->attribute->name) === 'color' ? 'color-circle' : 'size-box' }}"
107+
style="{{ strtolower($values->first()->attribute->name) === 'color' ? 'background-color:' . strtolower($value->value) . ';' : '' }}"
107108
>
108109
@if(strtolower($values->first()->attribute->name) === 'size')
109110
{{ $value->translated_value }}

0 commit comments

Comments
 (0)