79696853

Date: 2025-07-10 09:57:59
Score: 1.5
Natty:
Report link

All the answers did not work for me with Mui 5.X.

What actually worked to change the background color of the sticky header is the following

<Table stickyHeader sx={{'& th': {backgroundColor: 'blue'}}}>

and as theme override

MuiTable: {
    styleOverrides: {
        stickyHeader: {
            '& th': {
                backgroundColor: 'transparent',
            },
        },
    },
},
Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Patrick Schmidt