From b6480c6591a6f1b73ce4388ee9c341b5c421666c Mon Sep 17 00:00:00 2001 From: Christian Klammer Date: Fri, 12 May 2023 15:36:23 +1000 Subject: [PATCH] fix(A11y): ToggleSwitch - Added role to icon to fix Accessibility warning (#3634) fix(A11y): Added role to icon to fix Accessibility warning --- .changeset/serious-planets-act.md | 5 +++++ .../Form/Primitives/ToggleSwitch/ToggleSwitch.tsx | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .changeset/serious-planets-act.md diff --git a/.changeset/serious-planets-act.md b/.changeset/serious-planets-act.md new file mode 100644 index 00000000000..980a55db7b0 --- /dev/null +++ b/.changeset/serious-planets-act.md @@ -0,0 +1,5 @@ +--- +"@kaizen/draft-form": patch +--- + +A11y fix: Added role=presentation to icon within ToggleSwitch diff --git a/draft-packages/form/KaizenDraft/Form/Primitives/ToggleSwitch/ToggleSwitch.tsx b/draft-packages/form/KaizenDraft/Form/Primitives/ToggleSwitch/ToggleSwitch.tsx index 014a5273248..b1d9ea77faa 100644 --- a/draft-packages/form/KaizenDraft/Form/Primitives/ToggleSwitch/ToggleSwitch.tsx +++ b/draft-packages/form/KaizenDraft/Form/Primitives/ToggleSwitch/ToggleSwitch.tsx @@ -53,7 +53,11 @@ export const ToggleSwitch = ({ /> - +