From 7e09091c319c793a1343da534a0d265a522ff57f Mon Sep 17 00:00:00 2001 From: Ciucur Erol Date: Wed, 27 May 2026 16:11:20 +0300 Subject: [PATCH] fix(a11y): add accessible names to icon-only buttons Lighthouse flagged five buttons with no accessible name in the home page featured threads section. Screen readers were announcing them as just "button". - Carousel prev/next buttons: add aria-label via i18n (featuredThreadsPrevious / featuredThreadsNext) since the buttons are real controls that scroll the embla carousel. - CardActions: convert from - diff --git a/app/src/components/ui/card.tsx b/app/src/components/ui/card.tsx index 11e80c0a..cdf77675 100644 --- a/app/src/components/ui/card.tsx +++ b/app/src/components/ui/card.tsx @@ -176,20 +176,20 @@ const cardActionsVariantClassNames: CardVariantMapping = { grid: "absolute top-3 right-3", } as const; -type CardActionsProps = Omit, "children">; +type CardActionsProps = Omit, "children">; const CardActions = ({ className, ...props }: CardActionsProps) => { const variant = useContext(CardContext); return ( - + ); }; diff --git a/app/src/copy/en-EN.json b/app/src/copy/en-EN.json index 732b8490..cbaf2b98 100644 --- a/app/src/copy/en-EN.json +++ b/app/src/copy/en-EN.json @@ -58,6 +58,8 @@ "howToUse": "How to Use", "featuredThreadsTitle": "/Featured threads", "featuredThreadsDescription": "Handpicked conversations worth exploring.", + "featuredThreadsPrevious": "Show previous featured threads", + "featuredThreadsNext": "Show next featured threads", "seeMoreThreads": "See more threads" }, "error": {