Skip to content

Commit

Permalink
fix: added a11y params for lisingImage (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni authored May 21, 2024
1 parent 61e1da3 commit da1110b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const ListingImage = ({
const Image = config.getComponent({ name: 'Image' }).component;
let commonImageProps = {
item,
'aria-hidden': true,
alt: imageProps.alt ?? '',
role: 'presentation',
'aria-hidden': imageProps.alt || item.title ? false : true,
alt: imageProps.alt ?? item.title ?? '',
role: imageProps.alt || item.title ? '' : 'presentation',
className,
loading,
responsive,
Expand Down

0 comments on commit da1110b

Please sign in to comment.