Set aria-label on Switch control

Closes #42403

Signed-off-by: Arnold Loubriat <datatriny@gmail.com>
This commit is contained in:
Arnold Loubriat 2025-09-09 21:56:56 +02:00 committed by GitHub
parent a3c95a2a34
commit fc326d254d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,6 +54,7 @@ export const SwitchControl = <
id={props.name}
data-testid={debeerify(props.name)}
label={labelOn}
aria-label={props.label}
isChecked={stringify ? value === "true" : value}
onChange={(e, checked) => {
const value = stringify ? checked.toString() : checked;