Issues with overriding this particular padding. I tried to use .MuiTableCell-root but it also didn't update the padding.
Material UI styles from developer tools
.MuiTableCell-root {
display: table-cell;
padding: 16px;
}
Styles from my own codes
const styles = makeStyles({
cell: {
padding: '10px',
},
});
Sample table details from class components
render() {
const { tab, classes } = this.props;
....
return (
<React.Fragment>
<TableHead>
<TableRow>
<TableCell align="left" className={classes.cell} style={{ width: 250, fontWeight: 'bold' }}>Meeting Date</TableCell>
</TableRow>
</TableHead>
</React.Fragment>
)
}
....
export default withStyles(styles)(MeetingsList);
When i check that particular cell via developer tools, seems like it doesn't update the padding. It does provide me my component name, so i'm thinking maybe my styles part is wrong?
class="MuiTableCell-root MuiTableCell-head MeetingsList-cell-632 MuiTableCell-alignLeft"
How to override style of nested Material UI component from the ancestors?