-
Notifications
You must be signed in to change notification settings - Fork 932
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
Not able to override styling for MUIDataTableToolbar using MuiTheme #162
Comments
Thanks for posting this issue. It reminded me I needed to remove some old code that blocked the customized styling for this component from happening. |
Published fix in the latest version |
👍 Awesome . Thank you for the quick response |
Hey, I hope this message is seen. I have a similar issue but with the HeaderRow not being able to change its background color. I tried a few classnames but i couldn't figure it out. I tried to over ride the MUIPaper so that the entire body changes its background color but it didn't change the header row's color.
This is for individual body components.
And this for the Paper. When i tried to apply the theme for the paper it coloured everything out except the header. |
To change header color, you need:
|
MUIDataTableHeadCell: {
fixedHeaderCommon: {
backgroundColor: "transparent"
}
} |
Fixed my issue. Thanks a lot! Had a lot of trouble finding this. |
Is it possible, that I can not override MUIDataTableHeadCell? I get this error: 'MUIDataTableHeadCell' does not exist in type 'Overrides'. |
First of all thank you for creating this component. Saved us tons of time 👍 I am trying to add a background color to the MUIDataTableToolbar (The one with all the tools on the top right side of the component). But I dont see the styling reflect in the component.
Expected Behavior
Current Behavior
When the overrides section is added in the createMuiTheme(), the styles for MUIDataTableToolbar dont take effect, but the styles for MUIDataTableBodyCell do.
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: