Commit 8009cd3 Alessandra Davila
authored
1 parent 8faf1f7 commit 8009cd3 Copy full SHA for 8009cd3
File tree 3 files changed +29
-5
lines changed
components/src/components/data-table
react/src/components/DataTable/stories
3 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 63
63
}
64
64
65
65
tr .#{$prefix } --parent-row.#{$prefix } --expandable-row + tr [data-child-row ] td {
66
- padding-bottom : rem (23px );
67
- transition : padding $duration--moderate-01 motion (standard , productive );
68
66
border-bottom : 1px solid $ui-03 ;
69
67
}
70
68
Original file line number Diff line number Diff line change
1
+ @import ' ~@carbon/type/scss/type' ;
2
+ @import ' ~@carbon/themes/scss/themes' ;
3
+
4
+ .demo-expanded-td td {
5
+ padding-left : 3.25rem !important ;
6
+ padding-bottom : 1.5rem ;
7
+ padding-top : 1rem ;
8
+ }
9
+
10
+ .demo-inner-container-header {
11
+ @include carbon--type-style (' productive-heading-01' );
12
+ color : $text-01 ;
13
+ }
14
+
15
+ .demo-inner-container-content {
16
+ @include carbon--type-style (' body-long-01' );
17
+ color : $text-02 ;
18
+ }
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
+ import './datatable-story.scss' ;
9
+
8
10
import React from 'react' ;
9
11
import DataTable , {
10
12
Table ,
@@ -56,9 +58,15 @@ export default props => (
56
58
< TableCell key = { cell . id } > { cell . value } </ TableCell >
57
59
) ) }
58
60
</ TableExpandRow >
59
- < TableExpandedRow colSpan = { headers . length + 1 } >
60
- < h1 > Expandable row content</ h1 >
61
- < p > Description here</ p >
61
+ < TableExpandedRow
62
+ colSpan = { headers . length + 1 }
63
+ className = "demo-expanded-td" >
64
+ < h1 className = "demo-inner-container-header" >
65
+ Expandable row content
66
+ </ h1 >
67
+ < p className = "demo-inner-container-content" >
68
+ Description here
69
+ </ p >
62
70
</ TableExpandedRow >
63
71
</ React . Fragment >
64
72
) ) }
You can’t perform that action at this time.
0 commit comments