From 5887befbb317e76e1437481420027f9dae310648 Mon Sep 17 00:00:00 2001 From: Daniel Beck Date: Thu, 20 Oct 2022 14:04:10 +0200 Subject: [PATCH] refactor(switch): new theme --- .../src/components/data-grid/readme.md | 1 + .../switch/__snapshots__/switch.spec.ts.snap | 2 +- .../src/components/switch/readme.md | 1 + .../src/components/switch/switch.css | 109 ++++++++++++++++-- .../src/components/switch/switch.tsx | 3 + packages/components/src/html/index.html | 13 +-- .../stories/components/switch/ScaleSwitch.vue | 2 + .../components/switch/switch.stories.mdx | 99 ++++++++++++++-- .../visual-tests/src/switch.visual.spec.js | 71 ++++++------ 9 files changed, 233 insertions(+), 68 deletions(-) diff --git a/packages/components/src/components/data-grid/readme.md b/packages/components/src/components/data-grid/readme.md index d9c3aa9b75..45c878db27 100644 --- a/packages/components/src/components/data-grid/readme.md +++ b/packages/components/src/components/data-grid/readme.md @@ -85,6 +85,7 @@ graph TD; scale-checkbox --> scale-icon-action-success scale-checkbox --> scale-icon-alert-information scale-checkbox --> scale-icon-alert-error + scale-switch --> scale-icon-action-success scale-progress-bar --> scale-icon-alert-error scale-progress-bar --> scale-icon-alert-success scale-text-field --> scale-helper-text diff --git a/packages/components/src/components/switch/__snapshots__/switch.spec.ts.snap b/packages/components/src/components/switch/__snapshots__/switch.spec.ts.snap index 2611cb75c0..49277dcaf3 100644 --- a/packages/components/src/components/switch/__snapshots__/switch.spec.ts.snap +++ b/packages/components/src/components/switch/__snapshots__/switch.spec.ts.snap @@ -2,7 +2,7 @@ exports[`Switch should match snapshot 1`] = ` -
+