fix: aria-label manquants sur Switch

pull/3115/head
Jalil Arfaoui 2024-05-28 15:29:24 +02:00
parent 54d49accd1
commit a0353619b7
2 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ function ActivitéMixte() {
defaultSelected={defaultChecked}
onChange={onMixteChecked}
light
aria-label="Activité mixte"
>
Activité mixte
</Switch>

View File

@ -141,6 +141,7 @@ export const Switch = (props: SwitchProps) => {
$size={size}
checked={isSelected}
disabled={isDisabled}
aria-label={props['aria-label']}
>
<HiddenInput
// eslint-disable-next-line react/jsx-props-no-spreading