Skip to content

Commit 3384a02

Browse files
committed
remove transitions in hopes of reducing diffs in chromatic
1 parent a2bff91 commit 3384a02

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.storybook-v3/custom-addons/chromatic/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, {useEffect, useState} from 'react';
2-
import addons, { makeDecorator } from '@storybook/addons';
3-
import {getQueryParams} from '@storybook/client-api';
1+
import React from 'react';
2+
import { makeDecorator } from '@storybook/addons';
43
import {Provider} from '@react-spectrum/provider';
54
import Heading from '@react/react-spectrum/Heading';
65
import {themes, scales, locales} from '../../constants';
6+
import './styles.css';
77

88
export const withChromaticProvider = makeDecorator({
99
name: 'withChromaticProvider',
@@ -16,8 +16,8 @@ export const withChromaticProvider = makeDecorator({
1616
return (
1717
<div style={{height}}>
1818
{(options.colorSchemes || Object.keys(themes)).map(colorScheme =>
19-
(options.scales || Object.keys(scales)).map(scale =>
20-
(colorScheme === 'light' ? selectedLocales : ['en-US']).map(locale =>
19+
(options.scales || Object.keys(scales)).map(scale =>
20+
(colorScheme === 'light' ? selectedLocales : ['en-US']).map(locale =>
2121
<Provider key={`${colorScheme}_${scale}_${locale}`} theme={themes[colorScheme]} colorScheme={colorScheme.replace(/est$/, '')} scale={scale} locale={locale} typekitId="pbi5ojv">
2222
<Heading variant="subtitle3" style={{margin: 0, padding: '10px'}}>{`${colorScheme}, ${scale}, ${locale}`}</Heading>
2323
{getStory(context)}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* {
2+
transition-property: none !important;
3+
}

0 commit comments

Comments
 (0)