From f2997c251988411e3d233e0de84584b441c875f0 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Sun, 25 Oct 2020 10:57:59 -0300 Subject: [PATCH] a11y pass --- components/cart/CartItem/CartItem.tsx | 1 + components/product/ProductCard/ProductCard.tsx | 2 ++ components/product/ProductSlider/ProductSlider.tsx | 8 +++++++- components/product/ProductView/ProductView.tsx | 2 ++ components/product/Swatch/Swatch.tsx | 1 + 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index bc74812e0..258eb5f9f 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -63,6 +63,7 @@ const CartItem = ({ src={item.image_url} width={150} height={150} + alt="Product Image" // The cart item image is already optimized and very small in size unoptimized /> diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index b37d7ca67..0274fbc30 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -36,6 +36,7 @@ const ProductCard: FC = ({ {p.name} = ({
{p.name} { return (
-