]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into fix/add-aria-label-to-featured-pins
authorSleeplessOne1917 <abias1122@gmail.com>
Mon, 19 Jun 2023 23:32:00 +0000 (23:32 +0000)
committerGitHub <noreply@github.com>
Mon, 19 Jun 2023 23:32:00 +0000 (23:32 +0000)
src/shared/components/post/post-listing.tsx

index 5ee07613d265c46b8f5be21ea835e07fc1366800..8e69b18ec428f7fea31228f5a73d1dbc18273da8 100644 (file)
@@ -544,7 +544,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")}
+              data-tippy-content={i18n.t("featured_in_community")}
+              aria-label={i18n.t("featured_in_community")}
             >
               <Icon icon="pin" classes="icon-inline text-primary" />
             </small>
@@ -552,7 +553,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")}
+              data-tippy-content={i18n.t("featured_in_local")}
+              aria-label={i18n.t("featured_in_local")}
             >
               <Icon icon="pin" classes="icon-inline text-secondary" />
             </small>