mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Set aria-label on Switch control
Closes #42403 Signed-off-by: Arnold Loubriat <datatriny@gmail.com>
This commit is contained in:
parent
a3c95a2a34
commit
fc326d254d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user