From a0353619b73be61b1634968c2a3e18572159c666 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Tue, 28 May 2024 15:29:24 +0200 Subject: [PATCH] fix: aria-label manquants sur Switch --- site/source/components/ChiffreAffairesActivitéMixte.tsx | 1 + site/source/design-system/switch/Switch.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/site/source/components/ChiffreAffairesActivitéMixte.tsx b/site/source/components/ChiffreAffairesActivitéMixte.tsx index 76f502d19..f66ada017 100644 --- a/site/source/components/ChiffreAffairesActivitéMixte.tsx +++ b/site/source/components/ChiffreAffairesActivitéMixte.tsx @@ -170,6 +170,7 @@ function ActivitéMixte() { defaultSelected={defaultChecked} onChange={onMixteChecked} light + aria-label="Activité mixte" > Activité mixte diff --git a/site/source/design-system/switch/Switch.tsx b/site/source/design-system/switch/Switch.tsx index 9a8bef71d..ee4f3c9d9 100644 --- a/site/source/design-system/switch/Switch.tsx +++ b/site/source/design-system/switch/Switch.tsx @@ -141,6 +141,7 @@ export const Switch = (props: SwitchProps) => { $size={size} checked={isSelected} disabled={isDisabled} + aria-label={props['aria-label']} >