Mui-datatables: How to change checkbox color?

Created on 30 Jul 2018  路  2Comments  路  Source: gregnb/mui-datatables

How i can change the checkbox color.

question

Most helpful comment

You can override the theme, I didn't manage to do it without important

   getMuiTheme = () =>
    createMuiTheme({
      overrides: {
        MUIDataTableSelectCell: {
          checked: {color: "yellow !important" }
        }
      }
    });

All 2 comments

You can override the theme, I didn't manage to do it without important

   getMuiTheme = () =>
    createMuiTheme({
      overrides: {
        MUIDataTableSelectCell: {
          checked: {color: "yellow !important" }
        }
      }
    });

This should work. Looking at the source helped me find the right identifiers
https://github.com/gregnb/mui-datatables/blob/6da45d04da214f40172fdf33b5d32e99ac75c56a/src/components/TableSelectCell.js#L35

MUIDataTableSelectCell: { checkboxRoot: { '&$checked': { color: 'rgba(0, 0, 0, 0.54)', }, }, },

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexanderwhatley picture alexanderwhatley  路  4Comments

geekashu picture geekashu  路  3Comments

chapmanjacobd picture chapmanjacobd  路  4Comments

kylane picture kylane  路  3Comments

ronaiza-cardoso picture ronaiza-cardoso  路  3Comments