Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Dec 3, 2021
1 parent 81a248f commit 6dcd74d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,11 @@ The Story Store in v7 mode is async, so synchronous story loading APIs no longer
Storyshots is not currently compatible with the v7 store. However, you can use the following workaround to opt-out of the v7 store when running storyshots; in your `main.js`:

```js
features: {
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom');
}
module.exports = {
features: {
storyStoreV7: !global.navigator?.userAgent?.match?.('jsdom'),
},
};
```
There are some caveats with the above approach:
Expand All @@ -424,9 +426,11 @@ Now that the web is moving to Emotion 11 for styling, popular libraries like MUI
Unfortunately we're unable to upgrade Storybook to Emotion 11 without a semver major release, and we're not ready for that. So, as a workaround, we've created a feature flag which opts-out of the previous behavior of pinning the Emotion version to v10. To enable this workaround, add the following to your `.storybook/main.js` config:
```js
module.exports {
emotionAlias: false,
}
module.exports = {
features: {
emotionAlias: false,
},
};
```
Setting this should unlock theming for emotion11-based libraries in Storybook 6.4.
Expand Down

0 comments on commit 6dcd74d

Please sign in to comment.