Skip to content

Commit

Permalink
fix: add aria label to links in card
Browse files Browse the repository at this point in the history
  • Loading branch information
YourivHDenHaag committed Oct 10, 2023
1 parent d649c76 commit 2c05dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Card/src/Card/CaseCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const CaseCard: React.FC<CaseCardProps> = ({
<CardDate dateTime={date.toISOString()}>{date.toLocaleDateString()}</CardDate>
</CardDateWrapper>
)}
<CardAction href={href} Action={Link}>
<CardAction aria-label={title} href={href} Action={Link}>
<ArrowRightIcon className="denhaag-card__arrow-icon" />
</CardAction>
</CardActions>
Expand Down
2 changes: 1 addition & 1 deletion components/Card/src/Card/SubjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const SubjectCard: React.FC<SubjectCardProps> = ({ title, subTitle, date,
<CardDate dateTime={date.toISOString()}>{date.toLocaleDateString()}</CardDate>
</CardDateWrapper>
)}
<CardAction href={href} Action={Link}>
<CardAction aria-label={title} href={href} Action={Link}>
<ArrowRightIcon className="denhaag-card__arrow-icon" />
</CardAction>
</CardActions>
Expand Down

0 comments on commit 2c05dbd

Please sign in to comment.