-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] Change background color of the Header Filters #16291
Comments
What I'm working with... '& .datagrid-custom-header': {
backgroundColor: theme.palette.primary.main,
color: 'white',
},
'& .MuiDataGrid-sortIcon': {
color: 'white',
},
'& .MuiDataGrid-menuIconButton': {
color: 'white',
},
'& .MuiDataGrid-filterIcon': {
color: 'white',
},
'& .MuiDataGrid-columnHeaderTitleContainer': {
color: 'white',
'.MuiSvgIcon-root': {
color: 'white',
},
},
'& .MuiDataGrid-columnHeader': {
// Forced to use important since overriding inline styles
height: 'unset !important',
backgroundColor: theme.palette.primary.main,
color: 'white',
border: '1px solid white',
},
'& .MuiDataGrid-columnHeaderTitle': {
whiteSpace: 'normal',
lineHeight: 'normal',
},
'& .MuiDataGrid-columnHeaders': {
// Forced to use important since overriding inline styles
maxHeight: '168px !important',
}, |
Hey @gatorsong ... there are a few things you can improve in your example:
Does that fix your use case? |
Thanks |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @gatorsong How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
The problem in depth
I'm using the header filters and trying to adjust the background color to white/transparent. The current style has both the column header and header filters both blue. I want to be able to distinguish from the top and bottom column headers.
Your environment
`npx @mui/envinfo`
Search keywords: header filters background
Order ID: 106374
The text was updated successfully, but these errors were encountered: