Skip to content

Commit 902acda

Browse files
committed
Implement alt tags for images using product name
1 parent 496d563 commit 902acda

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/Product/IndexProducts.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const IndexProducts = ({ products }) => {
3535
<img
3636
id="product-image"
3737
className="transition duration-500 ease-in-out transform hover:grow hover:shadow-lg hover:scale-105"
38-
//className="w-64 transition duration-500 ease-in-out transform hover:grow hover:shadow-lg hover:scale-105"
38+
alt={name}
3939
src={image.sourceUrl}
4040
/>
4141
</a>

components/Product/SingleProduct.component.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const SingleProduct = ({ product }) => {
4444
<img
4545
id="product-image"
4646
className="h-auto p-8 transition duration-500 ease-in-out transform xl:p-2 md:p-2 lg:p-2 hover:grow hover:shadow-lg hover:scale-105"
47+
alt={name}
4748
src={image.sourceUrl}
4849
/>
4950
<div className="ml-8">

0 commit comments

Comments
 (0)