Merge pull request #4594 from prateek-webkul/master

Displaying variant image title on hover
This commit is contained in:
Glenn Hermans 2021-02-10 11:28:27 +01:00 committed by GitHub
commit 044c7ba0cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@
<span v-if="attribute.swatch_type == 'color'" :style="{ background: option.swatch_value }"></span>
<img v-if="attribute.swatch_type == 'image'" :src="option.swatch_value" alt="" />
<img v-if="attribute.swatch_type == 'image'" :src="option.swatch_value" :title="option.label" alt="" />
<span v-if="attribute.swatch_type == 'text'">
@{{ option.label }}

View File

@ -76,7 +76,7 @@
<span v-if="attribute.swatch_type == 'color'" :style="{ background: option.swatch_value }"></span>
<img v-if="attribute.swatch_type == 'image'" :src="option.swatch_value" alt="" />
<img v-if="attribute.swatch_type == 'image'" :src="option.swatch_value" :title="option.label" alt="" />
<span v-if="attribute.swatch_type == 'text'">
@{{ option.label }}