Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Commit

Permalink
Merge branch 'main' into sa-responsive-column-width
Browse files Browse the repository at this point in the history
  • Loading branch information
SiAdcock authored Feb 22, 2021
2 parents 079cb9a + 412ae1e commit 09cda83
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 35 deletions.
7 changes: 0 additions & 7 deletions src/core/components/layout/columns.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import React from 'react';
import { Columns } from './index';

const gridStoryWrapper = (storyFn: () => JSX.Element) => {
// override 8px margin applied globally to every preview body
return <div style={{ margin: '0 -8px' }}>{storyFn()}</div>;
};

export default {
title: 'Columns',
component: Columns,
decorators: [gridStoryWrapper],
};

export * from './stories/columns/default';
Expand Down
7 changes: 0 additions & 7 deletions src/core/components/layout/container.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import React from 'react';
import { Container } from './index';

const gridStoryWrapper = (storyFn: () => JSX.Element) => {
// override 8px margin applied globally to every preview body
return <div style={{ margin: '0 -8px' }}>{storyFn()}</div>;
};

export default {
title: 'Container',
component: Container,
decorators: [gridStoryWrapper],
};

export * from './stories/container/default';
7 changes: 0 additions & 7 deletions src/core/components/layout/inline.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import React from 'react';
import { Inline } from './index';

const gridStoryWrapper = (storyFn: () => JSX.Element) => {
// override 8px margin applied globally to every preview body
return <div style={{ margin: '0 -8px' }}>{storyFn()}</div>;
};

export default {
title: 'Inline',
component: Inline,
decorators: [gridStoryWrapper],
};

export * from './stories/inline/default';
7 changes: 0 additions & 7 deletions src/core/components/layout/stack.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import React from 'react';
import { Stack } from './index';

const gridStoryWrapper = (storyFn: () => JSX.Element) => {
// override 8px margin applied globally to every preview body
return <div style={{ margin: '0 -8px' }}>{storyFn()}</div>;
};

export default {
title: 'Stack',
component: Stack,
decorators: [gridStoryWrapper],
};

export * from './stories/stack/default';
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ collapseBelowTablet.story = {
name: 'collapse below tablet',
parameters: {
viewport: { defaultViewport: 'phablet' },
layout: 'fullscreen',
},
};
2 changes: 2 additions & 0 deletions src/core/components/layout/stories/columns/with-width.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ withWidthDesktop.story = {
name: 'with width desktop',
parameters: {
viewport: { defaultViewport: 'desktop' },
layout: 'fullscreen',
},
};

Expand All @@ -98,5 +99,6 @@ withWidthTablet.story = {
name: 'with width tablet',
parameters: {
viewport: { defaultViewport: 'tablet' },
layout: 'fullscreen',
},
};
7 changes: 0 additions & 7 deletions src/core/components/layout/tiles.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import React from 'react';
import { Tiles } from './index';

const gridStoryWrapper = (storyFn: () => JSX.Element) => {
// override 8px margin applied globally to every preview body
return <div style={{ margin: '0 -8px' }}>{storyFn()}</div>;
};

export default {
title: 'Tiles',
component: Tiles,
decorators: [gridStoryWrapper],
};

export * from './stories/tiles/default';
Expand Down

0 comments on commit 09cda83

Please sign in to comment.