From bab9bb4260468e238f60fbaa8b62b010bcdc2165 Mon Sep 17 00:00:00 2001 From: Miki Date: Sun, 4 Aug 2024 23:25:27 -0700 Subject: [PATCH] Add display type and color to OuiSwitch Signed-off-by: Miki --- CHANGELOG.md | 8 +- .../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 +++ 7 files changed, 179 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 834f54652a..6ba0f8c922 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,11 +20,17 @@ ### 🔩 Tests -## [`1.8.2`](https://github.com/opensearch-project/oui/tree/1.8.1) +## [`1.9.0`](https://github.com/opensearch-project/oui/tree/1.8.1) + +### 📈 Features/Enhancements + +- Add display type and color to OuiSwitch ([#1332](https://github.com/opensearch-project/oui/pull/1332)) ### 🐛 Bug Fixes - Fix the availability of OuiCompressedSuperDatePicker ([#1325](https://github.com/opensearch-project/oui/pull/1325)) +- Fix now button to be secondary in SuperDatePicker ([#1320](https://github.com/opensearch-project/oui/pull/1320)) + ## [`1.8.1`](https://github.com/opensearch-project/oui/tree/1.8.1) 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`] = `