Skip to content

Commit

Permalink
test: add mobile-wide viewort to chromatic options
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext committed Dec 10, 2024
1 parent 07371a2 commit 6630513
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/nextjs/.storybook/chromatic.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import "@storybook/csf";

type ChromaticModes = "legacy" | "mobile" | "desktop" | "desktop-wide";
type ChromaticModes =
| "legacy"
| "mobile"
| "mobile-wide"
| "desktop"
| "desktop-wide";

export function chromaticParams(modes: ChromaticModes[]) {
return {
Expand All @@ -9,6 +14,9 @@ export function chromaticParams(modes: ChromaticModes[]) {
...(modes.includes("mobile") && {
mobile: { viewport: "mobile" },
}),
...(modes.includes("mobile-wide") && {
mobile: { viewport: "mobile-wide" },
}),
...(modes.includes("desktop") && {
desktop: { viewport: "desktop" },
}),
Expand Down

0 comments on commit 6630513

Please sign in to comment.