Skip to content

Commit

Permalink
fix: ARIA label for event cards
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroWave022 committed Oct 27, 2024
1 parent 0ea7d99 commit f57378e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lighthouserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ module.exports = {
'heading-order': 'off',
'largest-contentful-paint': 'off',
'render-blocking-resources': 'off',
'uses-responsive-images': 'off'
'uses-responsive-images': 'off',
},
}
},
],
},
},
Expand Down
5 changes: 4 additions & 1 deletion src/components/events/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function EventCard(props: EventCardProps) {
const ended = props.endTime < new Date();

return (
<Link href={`/events/${props.id}`} aria-label={'Open event details'}>
<Link
href={`/events/${props.id}`}
aria-label={`Read more about ${props.title}`}
>
<Card
className={cx('text-center', { 'bg-secondary': started && !ended })}
>
Expand Down

0 comments on commit f57378e

Please sign in to comment.