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
[docs] Fix type vs. mode and capitalization of createMuiTheme #22844
Conversation
-const theme = createMuitheme({palette: { type: 'dark' }}), | ||
+const theme = createMuitheme({ | ||
-const theme = createMuiTheme({palette: { type: 'dark' }}), | ||
+const theme = createMuiTheme({ | ||
+ palette: { type: 'dark', text: { hint: 'rgba(0, 0, 0, 0.38)' } }, |
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.
Wasn't sure whether to change this from type
to mode
.
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.
This should be changed, I think.
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.
Agree, we could base the diff based the most accurate state of v5. So use mode: dark in both cases. @hubgit do you want to send a pull request? :)
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.
Ok, I'll send a PR. It seems that this diff is the wrong way round, too, if I'm understanding the changes correctly?
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.
The diff is correct
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.
Created #23416
Noticed these.