forked from crowetic/commerce
Updated alt tags
This commit is contained in:
parent
6fb5b412a8
commit
5ab999ac95
@ -41,7 +41,7 @@ const ProductCard: FC<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
<EnhancedImage
|
<EnhancedImage
|
||||||
src={p.images.edges?.[0]?.node.urlOriginal!}
|
src={p.images.edges?.[0]?.node.urlOriginal!}
|
||||||
alt={p.name}
|
alt={p.images.edges?.[0]?.node.altText || 'Product Image'}
|
||||||
width={imgWidth}
|
width={imgWidth}
|
||||||
height={imgHeight}
|
height={imgHeight}
|
||||||
priority={priority}
|
priority={priority}
|
||||||
|
@ -85,9 +85,9 @@ const ProductView: FC<Props> = ({ product }) => {
|
|||||||
{product.images.edges?.map((image, i) => (
|
{product.images.edges?.map((image, i) => (
|
||||||
<div key={image?.node.urlOriginal} className={s.imageContainer}>
|
<div key={image?.node.urlOriginal} className={s.imageContainer}>
|
||||||
<Image
|
<Image
|
||||||
alt={product.name}
|
|
||||||
className={s.img}
|
className={s.img}
|
||||||
src={image?.node.urlOriginal!}
|
src={image?.node.urlOriginal!}
|
||||||
|
alt={image?.node.altText || 'Product Image'}
|
||||||
width={1050}
|
width={1050}
|
||||||
height={1050}
|
height={1050}
|
||||||
priority={i === 0}
|
priority={i === 0}
|
||||||
|
@ -62,7 +62,6 @@ const WishlistCard: FC<Props> = ({ item }) => {
|
|||||||
width={400}
|
width={400}
|
||||||
height={400}
|
height={400}
|
||||||
alt={product.images.edges?.[0]?.node.altText || 'Product Image'}
|
alt={product.images.edges?.[0]?.node.altText || 'Product Image'}
|
||||||
// The cart item image is already optimized and very small in size
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user