first
This commit is contained in:
27
src/themes/overrides/TableBody.js
Normal file
27
src/themes/overrides/TableBody.js
Normal file
@@ -0,0 +1,27 @@
|
||||
// ==============================|| OVERRIDES - TABLE ROW ||============================== //
|
||||
|
||||
export default function TableBody(theme) {
|
||||
const hoverStyle = {
|
||||
'&:hover': {
|
||||
backgroundColor: theme.palette.secondary.lighter
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
MuiTableBody: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
'&.striped .MuiTableRow-root': {
|
||||
'&:nth-of-type(even)': {
|
||||
backgroundColor: theme.palette.grey[50]
|
||||
},
|
||||
...hoverStyle
|
||||
},
|
||||
'& .MuiTableRow-root': {
|
||||
...hoverStyle
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user