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