Open shaka0241 opened 4 years ago
Hello @shaka0241, MuiIDataTables uses Material-UI components.
If you want to override MuiDatatables styles you should override the Material-UI component styles, in this case, use MuiTableRow instead of MUIDataTableBodyRow
Hi. I found other solution.
If you analyse createMuiTheme you will see this: https://github.com/mui-org/material-ui/blob/743e26d89638d8f52c66c25f1dbc6e49ee9a4138/packages/material-ui/src/styles/createMuiTheme.js#L44
createMuiTheme will do a deepmerge. So you can use the custom names.
You can do something like this:
const theme = createMuiTheme( {}, { overrides: { MUIDataTableBodyCell: { root: { backgroundColor: '#FF0000', }, }, }, }, );
Like the example...
Expected Behavior
hi, how can i set a theme by the MuiThemeProvider, in my tsx file.
Current Behavior
Your Environment