Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 20483c5

Browse files
Added 'title' attribute to 'img' tag in knockout template files.
1 parent ce5eacd commit 20483c5

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

app/code/Magento/Braintree/view/frontend/web/template/payment/paypal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()" />
1313
<label class="label" data-bind="attr: {'for': getCode()}">
1414
<!-- PayPal Logo -->
15-
<img data-bind="attr: {src: getPaymentAcceptanceMarkSrc(), alt: $t('Acceptance Mark')}"
15+
<img data-bind="attr: {src: getPaymentAcceptanceMarkSrc(), alt: $t('Acceptance Mark')}, title: $t('Acceptance Mark')}"
1616
class="payment-icon"/>
1717
<!-- PayPal Logo -->
1818
<span text="getTitle()"></span>

app/code/Magento/Captcha/view/frontend/web/template/checkout/captcha.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<div class="control captcha-image">
1616
<img data-bind="attr: {
1717
alt: $t('Please type the letters and numbers below'),
18+
title: $t('Please type the letters and numbers below'),
1819
height: imageHeight(),
1920
src: getImageSource(),
2021
}"

app/code/Magento/Catalog/view/adminhtml/web/template/image-preview.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
event="load: $parent.onPreviewLoad.bind($parent)"
1515
attr="
1616
src: $parent.getFilePreview($file),
17-
alt: $file.name">
17+
alt: $file.name,
18+
title: $file.name">
1819
</a>
1920

2021
<div class="actions">

app/code/Magento/Catalog/view/base/web/template/product/list/columns/image.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class="product-image-photo"
1212
attr="src: getImageUrl($row()),
1313
alt: getLabel($row()),
14+
title: getLabel($row()),
1415
width: getResizedImageWidth($row()),
1516
height: getResizedImageHeight($row())"/>
1617
</a>

app/code/Magento/Catalog/view/base/web/template/product/list/columns/image_with_borders.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
data-bind="style: {'padding-bottom': getHeight($row())/getWidth($row()) * 100 + '%'}">
1515
<img class="product-image-photo"
1616
data-bind="attr: {src: getImageUrl($row()),
17-
alt: getLabel($row())}" />
17+
alt: getLabel($row()), title: getLabel($row())}" />
1818
</span>
1919
</span>
2020
</a>

app/code/Magento/Checkout/view/frontend/web/template/summary/item/details/thumbnail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
data-bind="attr: {'style': 'height: ' + getHeight($parents[1]) + 'px; width: ' + getWidth($parents[1]) + 'px;' }">
99
<span class="product-image-wrapper">
1010
<img
11-
data-bind="attr: {'src': getSrc($parents[1]), 'width': getWidth($parents[1]), 'height': getHeight($parents[1]), 'alt': getAlt($parents[1]) }"/>
11+
data-bind="attr: {'src': getSrc($parents[1]), 'width': getWidth($parents[1]), 'height': getHeight($parents[1]), 'alt': getAlt($parents[1]), 'title': getAlt($parents[1]) }"/>
1212
</span>
1313
</span>

0 commit comments

Comments
 (0)