From c7dc88ae60291fc58551ead37a77ec31bd357470 Mon Sep 17 00:00:00 2001 From: Jaqueline Bianco <97712990+jaquezux@users.noreply.github.com> Date: Tue, 26 Jul 2022 14:04:43 +0100 Subject: [PATCH] Accessibility improvement Change the image alt to {props.text} instead of 'Travel Image'. It can help the alt text to be different for each image according to text defined in Cards.js file and improve the accessibility, like screen readers. --- src/components/CardItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CardItem.js b/src/components/CardItem.js index 505c1ddc26..6cfd29877c 100644 --- a/src/components/CardItem.js +++ b/src/components/CardItem.js @@ -9,7 +9,7 @@ function CardItem(props) {
Travel Image