Skip to content

Commit e9117c5

Browse files
committed
improvement: a11y: landmark-ify "recent apps" div
1 parent 9633011 commit e9117c5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/frontend/src/components/screens/MainScreen/MainScreen.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,18 +595,22 @@ function AppIcons({
595595
accountId: number | undefined
596596
apps: T.Message[]
597597
}) {
598+
const tx = useTranslationFunction()
599+
598600
if (!accountId || !apps || apps.length === 0) {
599601
return null
600602
}
601603
return (
602-
<div
604+
<section
605+
role='region'
606+
aria-label={tx('webxdc_apps')}
603607
className={styles.webxdcIcons}
604608
data-testid='last-used-apps'
605609
data-no-drag-region='true'
606610
>
607611
{apps.map(app => (
608612
<AppIcon key={app.id} accountId={accountId} app={app} />
609613
))}
610-
</div>
614+
</section>
611615
)
612616
}

0 commit comments

Comments
 (0)