From 861eec4f1a14ee072c1ff31ae8f266c3f3003703 Mon Sep 17 00:00:00 2001 From: Yordan Date: Mon, 1 Sep 2025 15:00:35 +0200 Subject: [PATCH 1/4] fix: improve accessibility and input handling --- .../__snapshots__/Switch.spec.tsx.snap | 17 +++++++++++++++-- .../switch-web/src/components/Switch.tsx | 10 +++++++++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/packages/pluggableWidgets/switch-web/src/__tests__/__snapshots__/Switch.spec.tsx.snap b/packages/pluggableWidgets/switch-web/src/__tests__/__snapshots__/Switch.spec.tsx.snap index dab78412e6..03263dfc70 100644 --- a/packages/pluggableWidgets/switch-web/src/__tests__/__snapshots__/Switch.spec.tsx.snap +++ b/packages/pluggableWidgets/switch-web/src/__tests__/__snapshots__/Switch.spec.tsx.snap @@ -5,12 +5,18 @@ exports[`Switch with editable value renders the structure correctly 1`] = `
+
@@ -27,12 +33,19 @@ exports[`Switch with readonly value renders the structure correctly 1`] = `
+
diff --git a/packages/pluggableWidgets/switch-web/src/components/Switch.tsx b/packages/pluggableWidgets/switch-web/src/components/Switch.tsx index 15b8d05919..1c31d6b556 100644 --- a/packages/pluggableWidgets/switch-web/src/components/Switch.tsx +++ b/packages/pluggableWidgets/switch-web/src/components/Switch.tsx @@ -14,8 +14,16 @@ export interface SwitchProps extends Pick -