Skip to content

Commit

Permalink
fix layout for some of the header stories
Browse files Browse the repository at this point in the history
  • Loading branch information
winkerVSbecks committed Dec 12, 2024
1 parent 1e58f92 commit 8227827
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/Header/Header.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { SubNav } from '../SubNav';
const meta: Meta<typeof Header> = {
title: 'Components/Header',
component: Header,
parameters: {
layout: 'fullscreen',
},
};

export default meta;
Expand All @@ -22,7 +25,6 @@ export const DesktopLight: Story = {
links: defaultLinks,
},
parameters: {
layout: 'fullscreen',
chromatic: { viewports: [940, 1024, 1280, 1536] },
viewport: {
defaultViewport: 'lg',
Expand Down Expand Up @@ -62,27 +64,31 @@ export const DesktopDarkSticky: Story = {
};

export const DesktopLoggedOut: Story = {
...DesktopLight,
args: {
...DesktopLight.args,
loggedIn: false,
},
};

export const DesktopLoggedIn: Story = {
...DesktopLight,
args: {
...DesktopLight.args,
loggedIn: true,
},
};

export const DesktopLoggedOutMaintenance: Story = {
...DesktopLight,
args: {
...DesktopLight.args,
maintenanceMode: true,
},
};

export const DesktopLoggedInMaintenance: Story = {
...DesktopLight,
args: {
...DesktopLight.args,
loggedIn: true,
Expand Down Expand Up @@ -148,7 +154,6 @@ export const DesktopLightOpen: Story = {
...DesktopLight.args,
},
parameters: {
layout: 'fullscreen',
chromatic: { pauseAnimationAtEnd: true, delay: 600 },
viewport: {
defaultViewport: 'lg',
Expand All @@ -171,7 +176,6 @@ export const DesktopDarkOpen: Story = {
theme: 'dark',
},
parameters: {
layout: 'fullscreen',
backgrounds: { default: 'dark' },
chromatic: { pauseAnimationAtEnd: true, delay: 600 },
viewport: {
Expand All @@ -194,7 +198,6 @@ export const TabletLight: Story = {
...DesktopLight.args,
},
parameters: {
layout: 'fullscreen',
chromatic: { viewports: [320, 640, 768, 939] },
viewport: {
defaultViewport: 'md',
Expand All @@ -208,7 +211,6 @@ export const TabletDark: Story = {
theme: 'dark',
},
parameters: {
layout: 'fullscreen',
chromatic: { viewports: [320, 640, 768, 939] },
viewport: {
defaultViewport: 'md',
Expand All @@ -222,7 +224,6 @@ export const TabletOpen: Story = {
...DesktopLight.args,
},
parameters: {
layout: 'fullscreen',
chromatic: { viewports: [320, 640, 768, 939] },
viewport: {
defaultViewport: 'md',
Expand Down Expand Up @@ -259,7 +260,6 @@ export const MobileOpen: Story = {
...DesktopLight.args,
},
parameters: {
layout: 'fullscreen',
chromatic: { viewports: [320, 640, 768, 939] },
viewport: {
defaultViewport: 'xsm',
Expand All @@ -280,17 +280,13 @@ export const DesktopFullWidth: Story = {
...DesktopLight.args,
fullWidth: true,
},
parameters: {
layout: 'fullscreen',
},
};

export const MobileFullWidth: Story = {
args: {
...DesktopLight.args,
},
parameters: {
layout: 'fullscreen',
viewport: {
defaultViewport: 'xsm',
},
Expand Down

0 comments on commit 8227827

Please sign in to comment.