@@ -5,18 +5,18 @@ const styles = {
5
5
tableContainer : {
6
6
width : '100%' ,
7
7
height : `calc(100% - ${ CssSizeVariables . sapWcrAnalyticalTableRowHeight } )` ,
8
- minHeight : '3rem'
8
+ minHeight : '3rem' ,
9
9
} ,
10
10
table : {
11
11
position : 'relative' ,
12
12
width : '100%' ,
13
13
maxWidth : '100%' ,
14
- overflowX : 'auto'
14
+ overflowX : 'auto' ,
15
15
} ,
16
16
tableHeaderRow : {
17
17
boxShadow : 'none !important' ,
18
18
height : CssSizeVariables . sapWcrAnalyticalTableRowHeight ,
19
- position : 'relative'
19
+ position : 'relative' ,
20
20
} ,
21
21
th : {
22
22
backgroundColor : ThemingParameters . sapList_HeaderBackground ,
@@ -31,55 +31,59 @@ const styles = {
31
31
textAlign : 'start' ,
32
32
boxSizing : 'border-box' ,
33
33
'&:first-child' : {
34
- borderLeft : `1px solid ${ ThemingParameters . sapList_BorderColor } `
35
- }
34
+ borderLeft : `1px solid ${ ThemingParameters . sapList_BorderColor } ` ,
35
+ } ,
36
36
} ,
37
37
tbody : {
38
38
position : 'relative' ,
39
39
zIndex : 0 ,
40
40
backgroundColor : ThemingParameters . sapList_Background ,
41
41
overflowX : 'hidden !important' ,
42
- overflowY : 'auto !important'
42
+ overflowY : 'auto !important' ,
43
43
} ,
44
44
alternateRowColor : {
45
- backgroundColor : ThemingParameters . sapList_HeaderBackground
45
+ backgroundColor : ThemingParameters . sapList_HeaderBackground ,
46
46
} ,
47
47
emptyRow : { } ,
48
48
tr : {
49
49
zIndex : 0 ,
50
50
color : ThemingParameters . sapList_TextColor ,
51
+ boxSizing : 'border-box' ,
51
52
'&[data-is-selected]' : {
52
- backgroundColor : `${ ThemingParameters . sapList_SelectionBackgroundColor } !important`
53
+ backgroundColor : `${ ThemingParameters . sapList_SelectionBackgroundColor } !important` ,
54
+ '& $tableCell' : {
55
+ borderBottom : `1px solid ${ ThemingParameters . sapList_SelectionBorderColor } ` ,
56
+ } ,
53
57
} ,
54
58
'&[data-is-selected]:hover' : {
55
- backgroundColor : `${ ThemingParameters . sapList_Hover_SelectionBackground } !important`
56
- }
59
+ backgroundColor : `${ ThemingParameters . sapList_Hover_SelectionBackground } !important` ,
60
+ } ,
57
61
} ,
58
62
tableGroupHeader : {
59
63
'&$tr' : {
60
64
backgroundColor : `${ ThemingParameters . sapList_TableGroupHeaderBackground } !important` ,
61
65
border : `1px solid ${ ThemingParameters . sapList_TableGroupHeaderBorderColor } ` ,
62
66
color : ThemingParameters . sapList_TextColor ,
63
67
'& $tableCell' : {
64
- borderRight : 'none'
65
- }
66
- }
68
+ borderRight : 'none' ,
69
+ } ,
70
+ } ,
67
71
} ,
68
72
selectable : {
69
73
'& $tr:hover:not($emptyRow)' : {
70
74
backgroundColor : ThemingParameters . sapList_Hover_Background ,
71
75
'&:not($selectionModeRowSelector)' : {
72
- cursor : 'pointer'
73
- }
76
+ cursor : 'pointer' ,
77
+ } ,
74
78
} ,
75
79
'& $tr:active:not([data-is-selected]):not($tableGroupHeader):not($emptyRow):not($selectionModeRowSelector)' : {
76
80
backgroundColor : ThemingParameters . sapList_Active_Background ,
77
81
'& $tableCell' : {
78
82
borderRight : `1px solid ${ ThemingParameters . sapList_Active_Background } ` ,
79
83
color : `${ ThemingParameters . sapList_Active_TextColor } ` ,
80
- '--sapTextColor' : ThemingParameters . sapList_Active_TextColor
81
- }
82
- }
84
+ '--sapTextColor' : ThemingParameters . sapList_Active_TextColor ,
85
+ } ,
86
+ } ,
83
87
} ,
84
88
selectionModeRowSelector : { } ,
85
89
tableCell : {
@@ -93,7 +97,7 @@ const styles = {
93
97
display : 'flex' ,
94
98
padding : '0 0.5rem' ,
95
99
'&:first-child' : {
96
- borderLeft : `1px solid ${ ThemingParameters . sapList_BorderColor } `
100
+ borderLeft : `1px solid ${ ThemingParameters . sapList_BorderColor } ` ,
97
101
} ,
98
102
overflow : 'hidden' ,
99
103
position : 'relative' ,
@@ -102,8 +106,8 @@ const styles = {
102
106
alignItems : 'center' ,
103
107
'&:focus' : {
104
108
outlineOffset : '-2px' ,
105
- outline : `1px dotted ${ ThemingParameters . sapContent_FocusColor } `
106
- }
109
+ outline : `1px dotted ${ ThemingParameters . sapContent_FocusColor } ` ,
110
+ } ,
107
111
} ,
108
112
noDataContainer : {
109
113
display : 'flex' ,
@@ -117,13 +121,13 @@ const styles = {
117
121
fontFamily : ThemingParameters . sapFontFamily ,
118
122
fontSize : ThemingParameters . sapFontSize ,
119
123
fontWeight : 'normal' ,
120
- borderBottom : `1px solid ${ ThemingParameters . sapList_BorderColor } `
124
+ borderBottom : `1px solid ${ ThemingParameters . sapList_BorderColor } ` ,
121
125
} ,
122
126
modifiedRowHeight : {
123
127
'& $tableCell' : {
124
- height : ( props ) => `${ props . rowHeight } px`
125
- }
126
- }
128
+ height : ( props ) => `${ props . rowHeight } px` ,
129
+ } ,
130
+ } ,
127
131
} ;
128
132
129
133
export default styles ;
0 commit comments