diff --git a/components/00-base/_variables.components.scss b/components/00-base/_variables.components.scss index 4f79a159..f2a59752 100644 --- a/components/00-base/_variables.components.scss +++ b/components/00-base/_variables.components.scss @@ -393,6 +393,7 @@ $ct-tag-dark-tertiary-color: ct-color-dark('interaction-background') !default; // Table. // $ct-table-breakpoint: 'm' !default; +$ct-table-cell-vertical-align: top !default; $ct-table-light-background-color: ct-color-light('background-light') !default; $ct-table-light-border-color: ct-color-light('border') !default; $ct-table-light-caption-color: ct-color-light('body') !default; diff --git a/components/00-base/mixins/_table.scss b/components/00-base/mixins/_table.scss index 2f8c36ad..6b6ef28f 100644 --- a/components/00-base/mixins/_table.scss +++ b/components/00-base/mixins/_table.scss @@ -74,6 +74,7 @@ th, td { padding: ct-spacing(1.5) ct-spacing(); + vertical-align: $ct-table-cell-vertical-align; @include ct-breakpoint($ct-table-breakpoint) { padding: ct-spacing(1.5) ct-spacing(3); diff --git a/components/01-atoms/table/table.stories.js b/components/01-atoms/table/table.stories.js index 5c1bff0a..d89c425f 100644 --- a/components/01-atoms/table/table.stories.js +++ b/components/01-atoms/table/table.stories.js @@ -55,6 +55,18 @@ export const Table = (knobTab) => { 'Another column', 'One more column column', ], + [ + 'Row 6 with larger amount of content', + '
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
', + 'Another column', + 'One more column column', + ], + [ + 'Row 7 with small amount of content', + 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.
', + 'Another column', + 'One more column column', + ], ]; };