Skip to content

Commit 9da1712

Browse files
Fix storybook bgs when showing all stories (#995)
* fix storybook bgs when showing all stories * format fix
1 parent 4944964 commit 9da1712

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

docs/storybook/.storybook/preview.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const decorators = [
119119
data-color-mode={theme.startsWith('dark') ? 'dark' : 'light'}
120120
data-light-theme={theme.startsWith('light') ? theme : undefined}
121121
data-dark-theme={theme.startsWith('dark') ? theme : undefined}
122+
style={{backgroundColor: 'var(--bgColor-default)', padding: 'var(--base-size-16)'}}
122123
>
123124
<Story {...context} />
124125
{context.globals.theme === 'all' && <p className="theme-name">{theme}</p>}

docs/storybook/stories/DisplayColorTesting.stories.tsx renamed to docs/storybook/stories/Demo/DisplayColorTesting.stories.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ const colors = [
3636

3737
export const DisplayDemo = () => {
3838
return (
39-
<Box sx={{ml: 2, gap: 3, display: 'flex', flexDirection: 'column'}}>
40-
<Box sx={{ml: 2, gap: 2, display: 'flex'}}>
39+
<Box sx={{gap: 3, display: 'flex', flexDirection: 'column'}}>
40+
<Box sx={{gap: 2, display: 'flex'}}>
4141
{colors.map(color => (
4242
<Token
4343
text={color}
@@ -49,7 +49,7 @@ export const DisplayDemo = () => {
4949
/>
5050
))}
5151
</Box>
52-
<Box sx={{ml: 2, gap: 2, display: 'flex'}}>
52+
<Box sx={{gap: 2, display: 'flex'}}>
5353
{colors.map(color => (
5454
<Token
5555
text={color}
@@ -81,8 +81,8 @@ const roles = [
8181

8282
export const RoleDemo = () => {
8383
return (
84-
<Box sx={{ml: 2, gap: 3, display: 'flex', flexDirection: 'column'}}>
85-
<Box sx={{ml: 2, gap: 2, display: 'flex'}}>
84+
<Box sx={{gap: 3, display: 'flex', flexDirection: 'column'}}>
85+
<Box sx={{gap: 2, display: 'flex'}}>
8686
{roles.map(role => (
8787
<Token
8888
text={role}
@@ -94,7 +94,7 @@ export const RoleDemo = () => {
9494
/>
9595
))}
9696
</Box>
97-
<Box sx={{ml: 2, gap: 2, display: 'flex'}}>
97+
<Box sx={{gap: 2, display: 'flex'}}>
9898
{roles.map(role => (
9999
<Token
100100
text={role}

0 commit comments

Comments
 (0)