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 aed515f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 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,10 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet/Actions",
decorators: [(storyFn) => <div style={{ width: "800px", height: "800px" }}>{storyFn()}</div>],
parameters: {
chromatic: { delay: 1000 },
},
};

export const WithAHiddenCloseButton = () => {
Expand Down
4 changes: 4 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,10 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet/Content",
decorators: [(storyFn) => <div style={{ width: "800px", height: "800px" }}>{storyFn()}</div>],
parameters: {
chromatic: { delay: 1000 },
},
};

export const WithHelpText = () => {
Expand Down
4 changes: 4 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,10 @@ import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet/Features",
decorators: [(storyFn) => <div style={{ width: "800px", height: "800px" }}>{storyFn()}</div>],
parameters: {
chromatic: { delay: 1000 },
},
};

export const WithCustomWidths = () => {
Expand Down
4 changes: 4 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,10 @@ import { BottomSheetParts as BottomSheet } from "../BottomSheet.parts";

export default {
title: "Components/BottomSheet/Parts",
decorators: [(storyFn) => <div style={{ width: "800px", height: "800px" }}>{storyFn()}</div>],
parameters: {
chromatic: { delay: 1000 },
},
};

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

export default {
title: "Components/BottomSheet",
decorators: [(storyFn) => <div style={{ width: "800px", height: "800px" }}>{storyFn()}</div>],
parameters: {
chromatic: { delay: 1000 },
},
};

export const BasicUsage = () => {
Expand Down

0 comments on commit aed515f

Please sign in to comment.