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

export default {
title: "Components/BottomSheet/Actions",
parameters: {
chromatic: {
viewports: [
{
width: 1024,
height: 1024,
},
],
},
},
};

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

export default {
title: "Components/BottomSheet/Content",
parameters: {
chromatic: {
viewports: [
{
width: 1024,
height: 1024,
},
],
},
},
};

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

export default {
title: "Components/BottomSheet/Features",
parameters: {
chromatic: {
viewports: [
{
width: 1024,
height: 1024,
},
],
},
},
};

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

export default {
title: "Components/BottomSheet/Parts",
parameters: {
chromatic: {
viewports: [
{
width: 1024,
height: 1024,
},
],
},
},
};

export const RenderedUsingCompositionalAPI = () => {
Expand Down
11 changes: 11 additions & 0 deletions src/BottomSheet/stories/BottomSheet.story.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import React from "react";
import { Button } from "../../Button";
import { desktop as theme } from "../../theme";
import { Placeholder } from "../../utils/story/placeholder";
import BottomSheet from "../BottomSheet";

export default {
title: "Components/BottomSheet",
parameters: {
chromatic: {
viewports: [
{
width: theme.breakpoints.medium,
height: 1024,
},
],
},
},
};

export const BasicUsage = () => {
Expand Down

0 comments on commit 7122ec3

Please sign in to comment.