From 464baa207a648daeccf0bf11c304184a67f03705 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:54:33 -0700 Subject: [PATCH] Add display type and color to OuiSwitch (#1332) (#1333) Signed-off-by: Miki (cherry picked from commit 1f67bce3b76f1965dca4d0834b9c91508ca1f578) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- .../switch/__snapshots__/switch.test.tsx.snap | 6 +- src/components/form/switch/_switch.scss | 98 ++++++++++++++++++- src/components/form/switch/index.ts | 2 + src/components/form/switch/switch.tsx | 44 ++++++++- src/global_styling/variables/_form.scss | 14 +++ .../global_styling/variables/_form.scss | 14 +++ 6 files changed, 172 insertions(+), 6 deletions(-) diff --git a/src/components/form/switch/__snapshots__/switch.test.tsx.snap b/src/components/form/switch/__snapshots__/switch.test.tsx.snap index b04de29713..d98435ea3a 100644 --- a/src/components/form/switch/__snapshots__/switch.test.tsx.snap +++ b/src/components/form/switch/__snapshots__/switch.test.tsx.snap @@ -2,7 +2,7 @@ exports[`OuiSwitch assigns automatically generated ID to label 1`] = `