Skip to content

Commit bbf02f1

Browse files
committed
🤖 fix: allow unforced theme for local toggling, remove default dark override
1 parent fb22131 commit bbf02f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎.storybook/preview.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const preview: Preview = {
1111
theme: {
1212
name: "Theme",
1313
description: "Choose between light and dark UI themes",
14-
defaultValue: "dark",
1514
toolbar: {
1615
icon: "mirror",
1716
items: [
@@ -24,7 +23,7 @@ const preview: Preview = {
2423
},
2524
decorators: [
2625
(Story, context) => {
27-
const mode = (context.globals.theme ?? "dark") as ThemeMode;
26+
const mode = context.globals.theme as ThemeMode | undefined;
2827
return (
2928
<ThemeProvider forcedTheme={mode}>
3029
<Story />

0 commit comments

Comments
 (0)