From: Jay Sitter <jay@jaysitter.com>
Date: Sat, 17 Jun 2023 17:08:56 +0000 (-0400)
Subject: fix(a11y): Add aria-label to fetaured pins
X-Git-Url: http://these/git/%22%7Bauthor_url%7D/%7BjoinLemmyUrl%7D?a=commitdiff_plain;h=ec1d3726eda1fcfcc8fa08706c1bb42409e60974;p=lemmy-ui.git

fix(a11y): Add aria-label to fetaured pins
---

diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx
index b9d4125..36d96a9 100644
--- a/src/shared/components/post/post-listing.tsx
+++ b/src/shared/components/post/post-listing.tsx
@@ -582,7 +582,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
           {post.featured_community && (
             <small
               className="unselectable pointer ml-2 text-muted font-italic"
-              data-tippy-content={i18n.t("featured")}
+              aria-label={i18n.t("featured_in_community")}
+              data-tippy-content={i18n.t("featured_in_community")}
             >
               <Icon icon="pin" classes="icon-inline text-primary" />
             </small>
@@ -590,7 +591,8 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
           {post.featured_local && (
             <small
               className="unselectable pointer ml-2 text-muted font-italic"
-              data-tippy-content={i18n.t("featured")}
+              aria-label={i18n.t("featured_in_local")}
+              data-tippy-content={i18n.t("featured_in_local")}
             >
               <Icon icon="pin" classes="icon-inline text-secondary" />
             </small>