Skip to content

Commit

Permalink
💄 Storybook: Added bottom margin to Table header (#2670)
Browse files Browse the repository at this point in the history
  • Loading branch information
denektenina authored Nov 24, 2022
1 parent a3bb4bc commit 8872904
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/eds-core-react/src/components/Table/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const introduction: Story<TableProps> = (args) => {
return (
<Table {...args}>
<Table.Caption>
<Typography variant="h2">Fruits cost price</Typography>
<Typography variant="h2" style={{ marginBottom: '16px' }}>
Fruits cost price
</Typography>
</Table.Caption>
<Table.Head>
<Table.Row>
Expand Down Expand Up @@ -83,7 +85,9 @@ export const FixedTableHeader: Story<TableProps> = () => {
<div style={{ height: '200px', overflow: 'auto', display: 'grid' }}>
<Table>
<Table.Caption>
<Typography variant="h2">Fruits cost price</Typography>
<Typography variant="h2" style={{ marginBottom: '16px' }}>
Fruits cost price
</Typography>
</Table.Caption>
<Table.Head sticky>
<Table.Row>
Expand Down Expand Up @@ -187,7 +191,9 @@ export const CompactTable: Story<TableProps> = () => {
<EdsProvider density={density}>
<Table>
<Table.Caption>
<Typography variant="h2">Fruits cost price</Typography>
<Typography variant="h2" style={{ marginBottom: '16px' }}>
Fruits cost price
</Typography>
</Table.Caption>
<Table.Head>
<Table.Row>
Expand Down Expand Up @@ -303,7 +309,9 @@ export const Sortable: Story<TableProps> = () => {
return (
<Table>
<Table.Caption>
<Typography variant="h2">Fruits cost price</Typography>
<Typography variant="h2" style={{ marginBottom: '16px' }}>
Fruits cost price
</Typography>
</Table.Caption>
<Table.Head>
<Table.Row>
Expand Down

0 comments on commit 8872904

Please sign in to comment.