material-table icon indicating copy to clipboard operation
material-table copied to clipboard

rowStyle being overwritten by MuiTableCell-root

Open roseak opened this issue 7 years ago • 3 comments

Describe the bug Seems like despite rowStyle adding the styles for rows, MuiTableCell-root is overriding them (trying to increase the font size of the data in the table).

roseak avatar May 08 '19 22:05 roseak

Actually rowStyle does not effect the inside cells. You may try MuiThemeProvider

mbrn avatar May 09 '19 04:05 mbrn

@roseak I'm having the same problem you described - wanting to increase the font size of table cells, but attempting to do that via rowStyle is not working. Did you find any solution using MuiThemeProvider?

brichbe avatar May 21 '19 20:05 brichbe

Instead of being able to adjust it for all of the columns, you have to add cellStyle to each column with the fontSize you want. Like { title: "Name", field: "name", cellStyle: { fontSize: "12px" } }

roseak avatar May 21 '19 21:05 roseak