-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[core] Enable module augmentation of CommonColors #20212
[core] Enable module augmentation of CommonColors #20212
Conversation
Details of bundle changes.Comparing: 8b32809...2fe0e5f Details of page changes
|
Still need to test this :) |
I couldn't test it on codesandbox https://codesandbox.io/s/bold-voice-8z7l3, but on a naked Next.js environment, I could |
@oliviertassinari Thanks. Kind of forgot this one. |
@eps1lon Nice finding with the fix :)! |
@eps1lon Thank you for fixing this! |
@eps1lon @oliviertassinari Thanks for the quick turnaround. I really admire and respect the hard work you contribute to this project. It really shows in the quality. Thank you!!! |
@eps1lon Maybe I'm missing something but sadly this doesn't fix the full issue. import { makeStyles, createStyles } from '@material-ui/core/styles';
const useTableToolbarStyles = makeStyles(theme => ... It works when used like this: import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
const useTableToolbarStyles = makeStyles((theme: Theme) => ... The first worked before. Is that intended? Seems quite annoying to have to define the type of |
@levrik Could you provide a clonable repository with your approach and usage? Make sure you're following the approach outlined in the docs and https://codesandbox.io/s/bold-voice-8z7l3 |
Closes #20180
Allows
createMuiTheme({ palette: { common: { red: 'pink' } } })
withNeed to test this with csb deploy.