-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
[theme/styles] Unable to override MuiTableCell padding #9749
Comments
This comment was marked as resolved.
This comment was marked as resolved.
@mbrookes Thanks, well, I've been reading the whole customization, styles and API docs, and didn't find any way to do it. It's maybe not a bug, if there's an easy solution, but in any case, I'll be glad to improve doc and help, so it can belong here too I think
(edited 1st message to make it more clear) |
It could be a bug with the override mechanism, changing the key order on the object which changes the CSS specificity overall. |
My bad, @mbrookes is right, there is no bug. overrides: {
MuiTableCell: {
root: {
backgroundColor: 'lightblue'
},
+ paddingDefault: {
+ padding: '40px 24px 40px 16px',
+ },
},
}, |
This comment has been minimized.
This comment has been minimized.
For anyone that ends up here trying to override the default padding of a It looks like the CSS class |
demo: https://codesandbox.io/s/vyj481zp05
versions: see demo
I'm doing
but it's injected before other MuiTableCell styles, so it doesn't override
The text was updated successfully, but these errors were encountered: