Skip to content

Commit

Permalink
fix: extra small storybook viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Sep 25, 2023
1 parent 5ab22a3 commit 8ddb44a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const newViewports = {
extraSmall: {
name: "Extra small",
styles: {
width: theme.breakpoints.extraSmall,
width: "320px",
height: "100%",
},
},
Expand Down Expand Up @@ -39,6 +39,7 @@ const newViewports = {
},
},
};

export const parameters = {
viewport: { viewports: newViewports },
layout: "padded",
Expand Down
3 changes: 3 additions & 0 deletions src/DropdownMenu/DropdownMenu.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const customColors = {

export default {
title: "Components/DropdownMenu",
parameters: {
chromatic: { diffThreshold: 0.4 },
},
};

export const _DropdownMenu = () => (
Expand Down

0 comments on commit 8ddb44a

Please sign in to comment.