-
-
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
[styles] Add types for defaultTheme option in makeStyles #14862
Conversation
No bundle size changes comparing 89ebedc...3ea5cf7 |
@eps1lon , should be as generic as possible now, Please have a look if this works |
Could you add a test for a matching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there. Just some formatting left to do.
Thanks for your prompt responses and support, @eps1lon . Much appreciated. |
bump changes
adds `defaultTheme` option into `makeStyles` interface (inline with documentation https://material-ui.com/css-in-js/api/) adds test for makeStyles defaultTheme interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't recommend developing code in the github ui. Using a proper code editor (like vscode) will already show you any issues while coding. This removes the roundtrip downtime to CI.
on VSCode normally, but on the go sometimes have to use github UI, sorry. |
No worries. Just wanted to save you some time. |
Alright, looks good. Will merge soon. |
@vitkon Thanks for sticking with it. Nice work 👍 |
adds
defaultTheme
option intomakeStyles
interface (inline with documentation https://material-ui.com/css-in-js/api/)