Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Explain why 400 & 1200 values were chosen for Chromatic viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Mar 9, 2023
1 parent 9ce711b commit b0431bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const parameters = {
// This is because Chromatic doesn't show the cover image when the animation starts with opacity 0
pauseAnimationAtEnd: true,
// Set the viewport widths that Chromatic tests with globally.
// 400 lies between our screen-xs & screen-s variables.
// 1200 is the chromatic viewport we were using as default before adding an extra one for phones.
viewports: [400, 1200]
},
};

0 comments on commit b0431bf

Please sign in to comment.