From e046ea285407edd6c4cd818afe64dbbf2970c594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Sat, 14 Dec 2024 12:51:19 +0100 Subject: [PATCH] feat: more labels --- src/components/HungerAlert/HungerAlert.tsx | 1 + src/components/Sidebar/Sidebar.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/HungerAlert/HungerAlert.tsx b/src/components/HungerAlert/HungerAlert.tsx index 15fe6b02..586eda6d 100644 --- a/src/components/HungerAlert/HungerAlert.tsx +++ b/src/components/HungerAlert/HungerAlert.tsx @@ -56,6 +56,7 @@ export default function HungerAlert({ countryFcsData, countryMapData }: HungerAl columns={HungerAlertOperations.getHungerAlertModalColumns()} data={displayedRows} className="mb-3 min-h-[26rem]" + ariaLabel="Number of countries with high levels of hunger" /> setPage(newPage)} /> diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index fb7074ae..48505849 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -87,6 +87,7 @@ export function Sidebar({ countryMapData, fcsData }: SidebarProps) { classNames={{ popoverContent: 'bg-clickableSecondary' }} variant="faded" color="primary" + aria-label="Search a country" selectedKey={selectedCountryId !== null ? selectedCountryId.toString() : ''} > {countryMapData.features