Skip to content

Commit

Permalink
Merge pull request #397 from hendriknielaender/better_buttons
Browse files Browse the repository at this point in the history
fix: improve accessibility score by labeling social share
  • Loading branch information
hendriknielaender authored Feb 3, 2024
2 parents 4a55d41 + cb9bf17 commit 08451ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/atoms/SocialShare.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,31 @@ const { text, url, class: className = "inline-block" } = Astro.props;
data-aw-text={text}
><Icon name="logos:twitter" class="w-6 h-6" />
</button>
<button class="ml-2" data-aw-social-share="facebook" data-aw-url={url}
<button
aria-label="facebook"
class="ml-2"
data-aw-social-share="facebook"
data-aw-url={url}
><Icon name="logos:facebook" class="w-6 h-6" />
</button>
<button
aria-label="linkedin"
class="ml-2"
data-aw-social-share="linkedin"
data-aw-url={url}
data-aw-text={text}
><Icon name="logos:linkedin-icon" class="w-6 h-6" />
</button>
<button
aria-label="whatsapp"
class="ml-2"
data-aw-social-share="whatsapp"
data-aw-url={url}
data-aw-text={text}
><Icon name="logos:whatsapp" class="w-6 h-6" />
</button>
<button
aria-label="mail"
class="ml-2"
data-aw-social-share="mail"
data-aw-url={url}
Expand Down

0 comments on commit 08451ed

Please sign in to comment.