diff --git a/packages/components/src/components/data-table/_data-table-expandable.scss b/packages/components/src/components/data-table/_data-table-expandable.scss index 78b42c6ebee1..229b7679da0a 100644 --- a/packages/components/src/components/data-table/_data-table-expandable.scss +++ b/packages/components/src/components/data-table/_data-table-expandable.scss @@ -63,8 +63,6 @@ } tr.#{$prefix}--parent-row.#{$prefix}--expandable-row + tr[data-child-row] td { - padding-bottom: rem(23px); - transition: padding $duration--moderate-01 motion(standard, productive); border-bottom: 1px solid $ui-03; } diff --git a/packages/react/src/components/DataTable/stories/datatable-story.scss b/packages/react/src/components/DataTable/stories/datatable-story.scss new file mode 100644 index 000000000000..ad10886f0757 --- /dev/null +++ b/packages/react/src/components/DataTable/stories/datatable-story.scss @@ -0,0 +1,18 @@ +@import '~@carbon/type/scss/type'; +@import '~@carbon/themes/scss/themes'; + +.demo-expanded-td td { + padding-left: 3.25rem !important; + padding-bottom: 1.5rem; + padding-top: 1rem; +} + +.demo-inner-container-header { + @include carbon--type-style('productive-heading-01'); + color: $text-01; +} + +.demo-inner-container-content { + @include carbon--type-style('body-long-01'); + color: $text-02; +} diff --git a/packages/react/src/components/DataTable/stories/with-expansion.js b/packages/react/src/components/DataTable/stories/with-expansion.js index 2f09176715a2..b7542f36ef46 100644 --- a/packages/react/src/components/DataTable/stories/with-expansion.js +++ b/packages/react/src/components/DataTable/stories/with-expansion.js @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +import './datatable-story.scss'; + import React from 'react'; import DataTable, { Table, @@ -56,9 +58,15 @@ export default props => ( {cell.value} ))} - -

Expandable row content

-

Description here

+ +

+ Expandable row content +

+

+ Description here +

))}