Skip to content

Commit

Permalink
Merge pull request #20924 from storybookjs/norbert/fix-next
Browse files Browse the repository at this point in the history
Build: fix next
  • Loading branch information
ndelangen authored Feb 3, 2023
2 parents 904dba3 + 4c63dec commit 5f316d6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions code/ui/components/src/tabs/tabs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,23 @@ export const StatefulStaticWithSetBackgroundColor = {
),
} satisfies Story;

const customViewports = {
chromatic: {
name: 'Chromatic',
styles: {
width: '380px',
height: '963px',
},
},
};

export const StatefulDynamicWithOpenTooltip = {
parameters: {
viewport: {
defaultViewport: 'mobile2',
defaultViewport: 'chromatic',
viewports: customViewports,
},
chromatic: { viewports: [414] },
chromatic: { viewports: [380] },
},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
Expand Down Expand Up @@ -228,9 +239,10 @@ export const StatefulDynamicWithOpenTooltip = {
export const StatefulDynamicWithSelectedAddon = {
parameters: {
viewport: {
defaultViewport: 'mobile2',
defaultViewport: 'chromatic',
viewports: customViewports,
},
chromatic: { viewports: [414] },
chromatic: { viewports: [380] },
},
play: async (context) => {
await StatefulDynamicWithOpenTooltip.play(context);
Expand Down

0 comments on commit 5f316d6

Please sign in to comment.