Skip to content

Commit

Permalink
Fix community card anchor accesibility
Browse files Browse the repository at this point in the history
- Add title for image anchor
- Remove title from label anchor parent

Refs TS-2124
  • Loading branch information
anttimaki committed Aug 28, 2024
1 parent babce0e commit 5405ff7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ export function CommunityCard(props: Props) {

return (
<div className={styles.root}>
<a href={`/c/${community.identifier}`}>
<a href={`/c/${community.identifier}`} title={community.name}>
<ImageWithFallback
src={community.cover_image_url}
type="community"
rootClass={styles.imageWrapper}
/>
</a>
<div className={styles.title} title={community.name}>
<div className={styles.title}>
<a href={`/c/${community.identifier}`}>{community.name}</a>
</div>
<div className={styles.metaItemList}>
Expand Down

0 comments on commit 5405ff7

Please sign in to comment.