Skip to content

Commit

Permalink
fix: Use a specific width and height for Chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Nov 22, 2024
1 parent 4ec4032 commit 0012354
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/BottomSheet/stories/BottomSheet.actions.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet/Actions",
parameters: {
chromatic: {
modes: {
small: { name: "Small", styles: { width: "640px", height: "900px" } },
},
},
},
};

export const WithAHiddenCloseButton = () => {
Expand Down
7 changes: 7 additions & 0 deletions src/BottomSheet/stories/BottomSheet.content.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet/Content",
parameters: {
chromatic: {
modes: {
small: { name: "Small", styles: { width: "640px", height: "900px" } },
},
},
},
};

export const WithHelpText = () => {
Expand Down
7 changes: 7 additions & 0 deletions src/BottomSheet/stories/BottomSheet.features.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet/Features",
parameters: {
chromatic: {
modes: {
small: { name: "Small", styles: { width: "640px", height: "900px" } },
},
},
},
};

export const WithCustomWidths = () => {
Expand Down
7 changes: 7 additions & 0 deletions src/BottomSheet/stories/BottomSheet.parts.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ import { BottomSheetParts as BottomSheet } from "../BottomSheet.parts";

export default {
title: "Components/BottomSheet/Parts",
parameters: {
chromatic: {
modes: {
small: { name: "Small", styles: { width: "640px", height: "900px" } },
},
},
},
};

export const RenderedUsingCompositionalAPI = () => {
Expand Down
7 changes: 7 additions & 0 deletions src/BottomSheet/stories/BottomSheet.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet",
parameters: {
chromatic: {
modes: {
small: { name: "Small", styles: { width: "640px", height: "900px" } },
},
},
},
};

export const BasicUsage = () => {
Expand Down

0 comments on commit 0012354

Please sign in to comment.