From f3bdbf47d42b2f70596f87be6516c729d2b2f3d2 Mon Sep 17 00:00:00 2001 From: Brian Ingles Date: Mon, 23 Oct 2023 11:02:17 -0500 Subject: [PATCH] Moved themes outside of Spectrum provider #1543 --- .../components/src/theme/ThemeProvider.tsx | 6 +- .../__snapshots__/ThemeProvider.test.tsx.snap | 76 +++++++++---------- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/packages/components/src/theme/ThemeProvider.tsx b/packages/components/src/theme/ThemeProvider.tsx index d4d6291936..31dab2c533 100644 --- a/packages/components/src/theme/ThemeProvider.tsx +++ b/packages/components/src/theme/ThemeProvider.tsx @@ -73,14 +73,14 @@ export function ThemeProvider({ return ( {activeThemes == null ? null : ( - + <> {activeThemes.map(theme => ( ))} - {children} - + {children} + )} ); diff --git a/packages/components/src/theme/__snapshots__/ThemeProvider.test.tsx.snap b/packages/components/src/theme/__snapshots__/ThemeProvider.test.tsx.snap index 958a0f9a39..34e48b8154 100644 --- a/packages/components/src/theme/__snapshots__/ThemeProvider.test.tsx.snap +++ b/packages/components/src/theme/__snapshots__/ThemeProvider.test.tsx.snap @@ -3,17 +3,17 @@ exports[`ThemeProvider setSelectedThemeKey: [ [Object] ] should change selected theme: default-light 1`] = `
+
-
Child
@@ -25,24 +25,24 @@ exports[`ThemeProvider setSelectedThemeKey: [ [Object] ] should change selected exports[`ThemeProvider setSelectedThemeKey: [ [Object] ] should change selected theme: themeA 1`] = `
+ + - + -
-
Child