Skip to content

Commit cb90030

Browse files
committed
a11y: fix sr/aria issues
1 parent 9ea0611 commit cb90030

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

app/[locale]/enterprise/page.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,17 @@ const Page = async ({ params }: { params: { locale: Lang } }) => {
346346
{t("page-enterprise-ecosystem-description")}
347347
</p>
348348
</div>
349+
350+
{/* A11y list of companies for screen readers */}
351+
<div className="sr-only">
352+
<h3>{t("page-enterprise-ecosystem-companies")}</h3>
353+
<ul>
354+
{players.map(({ name }) => (
355+
<li key={name}>{name}</li>
356+
))}
357+
</ul>
358+
</div>
359+
349360
<div
350361
data-label="marquee"
351362
dir="ltr"
@@ -368,15 +379,14 @@ const Page = async ({ params }: { params: { locale: Lang } }) => {
368379
{players.map(({ name, Logo, className }) => (
369380
<div
370381
key={name}
371-
aria-label={name}
372382
className={cn(
373383
"flex size-fit justify-center px-6 text-[2.5rem] md:px-8",
374384
row === 1 && "-translate-x-[90rem]",
375385
row === 2 && "-translate-x-[180rem]",
376386
className
377387
)}
378388
>
379-
<Logo />
389+
<Logo aria-hidden />
380390
</div>
381391
))}
382392
</div>

src/components/BigNumber/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ const BigNumber = async ({
6565
</>
6666
}
6767
>
68-
<MdInfoOutline className="mb-0.5 ms-2 inline align-text-bottom" />
68+
<MdInfoOutline
69+
className="mb-0.5 ms-2 inline align-text-bottom"
70+
aria-label={t("data-provided-by")}
71+
/>
6972
</Tooltip>
7073
)}
7174
</div>

0 commit comments

Comments
 (0)