Skip to content

Commit

Permalink
chore: prevent animations from running in vrt
Browse files Browse the repository at this point in the history
  • Loading branch information
SiTaggart committed Sep 1, 2021
1 parent ab55fa2 commit 5cce491
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .storybook/preview.js
Expand Up @@ -54,7 +54,7 @@ export const decorators = [
default:
case 'default':
return (
<Theme.Provider theme={theme}>
<Theme.Provider theme={theme} disableAnimations={isChromatic()}>
<GlobalStyles />
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space80">
<Story />
Expand All @@ -67,14 +67,14 @@ export const decorators = [
<GlobalStyles />
<Grid>
<Column>
<Theme.Provider theme="default">
<Theme.Provider theme="default" disableAnimations={isChromatic()}>
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space80">
<Story />
</Box>
</Theme.Provider>
</Column>
<Column>
<Theme.Provider theme="dark">
<Theme.Provider theme="dark" disableAnimations={isChromatic()}>
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space80">
<Story />
</Box>
Expand All @@ -88,24 +88,24 @@ export const decorators = [
<>
<GlobalStyles />
<Stack orientation="vertical">
<Theme.Provider theme="default">
<Theme.Provider theme="default" disableAnimations={isChromatic()}>
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space80">
<Story />
</Box>
</Theme.Provider>
<Theme.Provider theme="default">
<Theme.Provider theme="default" disableAnimations={isChromatic()}>
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space20">
<Box margin="space40" padding="space40" backgroundColor="colorBackground">
<Story />
</Box>
</Box>
</Theme.Provider>
<Theme.Provider theme="dark">
<Theme.Provider theme="dark" disableAnimations={isChromatic()}>
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space80">
<Story />
</Box>
</Theme.Provider>
<Theme.Provider theme="dark">
<Theme.Provider theme="dark" disableAnimations={isChromatic()}>
<Box backgroundColor="colorBackgroundBody" color="colorText" padding="space20">
<Box margin="space40" padding="space40" backgroundColor="colorBackground">
<Story />
Expand Down

0 comments on commit 5cce491

Please sign in to comment.