@@ -5,41 +5,109 @@ import { ContentDensity } from '@ui5/webcomponents-react/lib/ContentDensity';
5
5
const styles = ( { parameters, contentDensity } : JSSTheme ) => ( {
6
6
tHead : {
7
7
boxShadow : 'none !important' ,
8
- height : `${ contentDensity === ContentDensity . Compact ? '2rem' : '3rem' } ` ,
9
- borderBottom : `1px solid ${ parameters . sapUiListVerticalBorderColor } !important` ,
10
- borderTop : `1px solid ${ parameters . sapUiListVerticalBorderColor } !important`
8
+ height : `${ contentDensity === ContentDensity . Compact ? '2rem' : '2.75rem' } `
11
9
} ,
12
10
13
- tr : {
14
- background : parameters . sapUiListBackground ,
15
- borderBottom : `1px solid ${ parameters . sapUiListVerticalBorderColor } !important` ,
16
- '& >:first-child' : {
17
- paddingLeft : '1rem !important'
18
- } ,
19
- '& >:not(:first-child)' : {
20
- paddingLeft : '0.5rem'
11
+ th : {
12
+ backgroundColor : parameters . sapUiListHeaderBackground ,
13
+ height : `${ contentDensity === ContentDensity . Compact ? '2rem' : '2.75rem' } ` ,
14
+ fontFamily : parameters . sapUiFontFamily ,
15
+ fontSize : parameters . sapMFontMediumSize ,
16
+ fontWeight : 'normal' ,
17
+ color : parameters . sapUiListHeaderTextColor ,
18
+ borderTop : `1px solid ${ parameters . sapUiListBorderColor } ` ,
19
+ borderBottom : `1px solid ${ parameters . sapUiListBorderColor } ` ,
20
+ borderRight : `1px solid ${ parameters . sapUiListVerticalBorderColor } ` ,
21
+ textAlign : 'start' ,
22
+ boxSizing : 'border-box' ,
23
+ '&:first-child' : {
24
+ borderLeft : `1px solid ${ parameters . sapUiListVerticalBorderColor } `
25
+ }
26
+ } ,
27
+ tableHeaderRow : { } ,
28
+ tableGroupHeader : {
29
+ '&$tr' : {
30
+ backgroundColor : `${ parameters . sapUiListTableGroupHeaderBackground } !important` ,
31
+ border : `1px solid ${ parameters . sapUiListTableGroupHeaderBorderColor } ` ,
32
+ color : parameters . sapUiListTextColor ,
33
+ '& $td' : {
34
+ borderRight : 'none'
35
+ }
21
36
}
22
37
} ,
23
- trGroup : {
24
- border : 'none!important'
38
+
39
+ tableGroupExpandCollapseIcon : {
40
+ color : parameters . sapUiContentIconColor ,
41
+ height : '2rem' ,
42
+ width : '2rem' ,
43
+ fontSize : '0.75rem'
25
44
} ,
45
+
46
+ tbody : {
47
+ position : 'relative' ,
48
+ '&$selectable $tr' : {
49
+ '&:hover' : {
50
+ backgroundColor : parameters . sapUiListHoverBackground
51
+ } ,
52
+ '&:active:not($selectedRow)' : {
53
+ backgroundColor : parameters . sapUiListActiveBackground ,
54
+ '& $td' : {
55
+ color : parameters . sapUiListActiveTextColor ,
56
+ borderRight : `1px solid ${ parameters . sapUiListActiveBackground } `
57
+ }
58
+ } ,
59
+ '&$selectedRow' : {
60
+ backgroundColor : parameters . sapUiListSelectionBackgroundColor ,
61
+ color : parameters . sapUiListActiveTextColor ,
62
+ '&:hover' : {
63
+ backgroundColor : parameters . sapUiListSelectionHoverBackground
64
+ }
65
+ }
66
+ } ,
67
+ '& $tr' : {
68
+ backgroundColor : parameters . sapUiListBackground
69
+ }
70
+ } ,
71
+ tr : { } ,
72
+ selectable : { } ,
73
+ selectedRow : { } ,
26
74
td : {
27
- // borderRight: `1px solid ${parameters.sapUiListVerticalBorderColor} !important`,
28
- height : `${ contentDensity === ContentDensity . Compact ? '2rem' : '3rem' } ` ,
29
- display : 'flex' ,
30
- alignItems : 'center' ,
75
+ height : `${ contentDensity === ContentDensity . Compact ? '2rem' : '2.75rem' } ` ,
31
76
fontFamily : fonts . sapUiFontFamily ,
32
77
fontSize : fonts . sapMFontMediumSize ,
33
78
fontWeight : 'normal' ,
34
- // backgroundColor: parameters.sapUiListBackground,
35
79
color : parameters . sapUiListTextColor ,
36
- paddingRight : '0.5rem !important'
80
+ borderBottom : `1px solid ${ parameters . sapUiListBorderColor } ` ,
81
+ borderRight : `1px solid ${ parameters . sapUiListVerticalBorderColor } ` ,
82
+ display : 'table-cell' ,
83
+ padding : '0 0.5rem' ,
84
+ '&:first-child' : {
85
+ borderLeft : `1px solid ${ parameters . sapUiListVerticalBorderColor } `
86
+ }
37
87
} ,
38
88
tBody : {
39
89
boxShadow : 'none !important'
40
90
} ,
91
+ tableContainer : {
92
+ width : '100%' ,
93
+ height : `${ contentDensity === ContentDensity . Compact ? 'calc(100% - 2rem)' : 'calc(100% - 2.75rem)' } ` ,
94
+ minHeight : '3rem'
95
+ } ,
41
96
table : {
42
- // border: `1px solid ${parameters.sapList_BorderColor} !important`
97
+ borderSpacing : 0 ,
98
+ position : 'relative'
99
+ } ,
100
+ noDataContainer : {
101
+ textAlign : 'center' ,
102
+ paddingTop : '0.5rem' ,
103
+ paddingBottom : '0.5rem' ,
104
+ backgroundColor : parameters . sapUiListBackground ,
105
+ width : '100%' ,
106
+ boxSizing : 'border-box' ,
107
+ color : parameters . sapUiListTextColor ,
108
+ fontFamily : fonts . sapUiFontFamily ,
109
+ fontSize : fonts . sapMFontMediumSize ,
110
+ fontWeight : 'normal'
43
111
}
44
112
} ) ;
45
113
0 commit comments