Skip to content

Commit

Permalink
added generic accessible content for covers
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Apr 11, 2023
1 parent c4c8b3d commit da5d8af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/stories/Library/cover/Cover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ const Cover: FC<CoverProps> = ({
// Images inside links must have an non-empty alt text to meet accessibility requirements.
// Only render the cover as a link if we have both an url and a description.
return (
<a className={classes.wrapper} href={coverUrl}>
<a
className={classes.wrapper}
href={coverUrl}
aria-label="cover aria label"
aria-labelledby="cover labelled by"
title="cover title text"
>
<CoverImage
setImageLoaded={() => setImageLoaded(true)}
src={src}
Expand Down

0 comments on commit da5d8af

Please sign in to comment.