@@ -97,10 +97,12 @@ export const Table = styled(DEFAULT_TAG, {
9797 [ `& th` ] : {
9898 fontWeight : '$bold' ,
9999 } ,
100- [ `& thead td,& thead th,& ${ TableHead } td,& ${ TableHead } th,& ${ TableHead } ${ TableCell } ` ] : {
101- fontWeight : '$regular' ,
102- } ,
103- [ `& tfoot td,& tfoot th,& ${ TableFoot } td,& ${ TableFoot } th,& ${ TableFoot } ${ TableCell } ` ] : { } ,
100+ [ `& thead td,& thead th,& ${ TableHead } td,& ${ TableHead } th,& ${ TableHead } ${ TableCell } ` ] :
101+ {
102+ fontWeight : '$regular' ,
103+ } ,
104+ [ `& tfoot td,& tfoot th,& ${ TableFoot } td,& ${ TableFoot } th,& ${ TableFoot } ${ TableCell } ` ] :
105+ { } ,
104106
105107 [ `& thead,& ${ TableHead } ` ] : {
106108 backgroundColor : '$grey2' ,
@@ -110,26 +112,32 @@ export const Table = styled(DEFAULT_TAG, {
110112 variants : {
111113 hover : {
112114 row : {
113- [ `& tbody tr:hover,& tbody ${ TableRow } :hover,& ${ TableBody } tr:hover,& ${ TableBody } ${ TableRow } :hover` ] : {
114- backgroundColor : '$grey4' ,
115- } ,
116- [ `& tbody tr[class*="selected"],& tbody ${ TableRow } [class*="selected"],& ${ TableBody } tr[class*="selected"],& ${ TableBody } ${ TableRow } [class*="selected"]` ] : {
117- backgroundColor : '$selection' ,
118- } ,
119- [ `& tbody td[class*="selected"],& tbody ${ TableCell } [class*="selected"],& ${ TableBody } td[class*="selected"],& ${ TableBody } ${ TableCell } [class*="selected"]` ] : {
120- backgroundColor : '$selection' ,
121- } ,
115+ [ `& tbody tr:hover,& tbody ${ TableRow } :hover,& ${ TableBody } tr:hover,& ${ TableBody } ${ TableRow } :hover` ] :
116+ {
117+ backgroundColor : '$grey4' ,
118+ } ,
119+ [ `& tbody tr[class*="selected"],& tbody ${ TableRow } [class*="selected"],& ${ TableBody } tr[class*="selected"],& ${ TableBody } ${ TableRow } [class*="selected"]` ] :
120+ {
121+ backgroundColor : '$selection' ,
122+ } ,
123+ [ `& tbody td[class*="selected"],& tbody ${ TableCell } [class*="selected"],& ${ TableBody } td[class*="selected"],& ${ TableBody } ${ TableCell } [class*="selected"]` ] :
124+ {
125+ backgroundColor : '$selection' ,
126+ } ,
122127 } ,
123128 cell : {
124- [ `& tbody td:hover,& tbody ${ TableCell } :hover,& ${ TableBody } td:hover,& ${ TableBody } ${ TableCell } :hover` ] : {
125- backgroundColor : '$grey4' ,
126- } ,
127- [ `& tbody td[class*="selected"],& tbody ${ TableCell } [class*="selected"],& ${ TableBody } td[class*="selected"],& ${ TableBody } ${ TableCell } [class*="selected"]` ] : {
128- backgroundColor : '$selection' ,
129- } ,
130- [ `& tbody tr[class*="selected"],& tbody ${ TableRow } [class*="selected"],& ${ TableBody } tr[class*="selected"],& ${ TableBody } ${ TableRow } [class*="selected"]` ] : {
131- backgroundColor : '$selection' ,
132- } ,
129+ [ `& tbody td:hover,& tbody ${ TableCell } :hover,& ${ TableBody } td:hover,& ${ TableBody } ${ TableCell } :hover` ] :
130+ {
131+ backgroundColor : '$grey4' ,
132+ } ,
133+ [ `& tbody td[class*="selected"],& tbody ${ TableCell } [class*="selected"],& ${ TableBody } td[class*="selected"],& ${ TableBody } ${ TableCell } [class*="selected"]` ] :
134+ {
135+ backgroundColor : '$selection' ,
136+ } ,
137+ [ `& tbody tr[class*="selected"],& tbody ${ TableRow } [class*="selected"],& ${ TableBody } tr[class*="selected"],& ${ TableBody } ${ TableRow } [class*="selected"]` ] :
138+ {
139+ backgroundColor : '$selection' ,
140+ } ,
133141 } ,
134142 } ,
135143 striped : {
@@ -144,11 +152,12 @@ export const Table = styled(DEFAULT_TAG, {
144152 true : {
145153 position : 'relative' ,
146154 borderCollapse : 'separate' ,
147- [ `& thead td,& thead th,& ${ TableHead } td,& ${ TableHead } th,& ${ TableHead } ${ TableCell } ` ] : {
148- position : 'sticky' ,
149- top : 0 ,
150- zIndex : 2 ,
151- } ,
155+ [ `& thead td,& thead th,& ${ TableHead } td,& ${ TableHead } th,& ${ TableHead } ${ TableCell } ` ] :
156+ {
157+ position : 'sticky' ,
158+ top : 0 ,
159+ zIndex : 2 ,
160+ } ,
152161 [ `& thead,& ${ TableHead } ` ] : {
153162 position : 'sticky' ,
154163 top : 0 ,
0 commit comments