-
-
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
[Typography] color
prop is not documented but it works
#32269
Comments
color
prop is not documented but it works
Hey @socketpair, thanks for the heads up! Do you want to open a PR for it?! |
If we decide to document I presume that is why we inserted this explanation instead:
|
Thanks for the heads up @hbjORbj! I think @socketpair's suggestion is indeed a clearer way to transmit this information! |
I agree! Will you be willing to work on this? @socketpair |
I think yes. |
@hbjORbj Sorry, I can't :( |
Definitely agree with @socketpair, this confused me for a good little while. |
Just wanted to add that, currently, TypeScript is not aware that you can pass the colors defined in the theme. The following values are not listed in the auto-completion suggestions: primary
primary.main
textPrimary
text.primary
secondary
secondary.main
textSecondary
text.secondary
error
error.main It would be helpful to have these included in the |
It's also weird that |
https://mui.com/material-ui/api/typography/
color= property is missing.
For example,
color="primary"
andcolor="primary.dark"
both work as expected.The text was updated successfully, but these errors were encountered: