-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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] Typography moved inside muitheme #3301
Conversation
@@ -255,14 +254,16 @@ const FlatButton = React.createClass({ | |||
const buttonRippleColor = rippleColor || defaultRippleColor; | |||
const buttonBackgroundColor = backgroundColor || buttonColor; | |||
const hovered = (this.state.hovered || this.state.isKeyboardFocused) && !disabled; | |||
const fontSize = this.state.muiTheme.flatButton.fontSize; |
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.
BTW, this can also be written like this:
const {
fontSize,
fontWeight,
} = this.state.muiTheme.flatButton;
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.
should I update this change @newoga?
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.
Might be okay for now, what do you think @oliviertassinari @alitaheri?
If the the theme changes are solid, I'm good merging this as is. I think for this file we'll have to revisit to removing ContextPure
and getRelevantContextKeys
. That might be a good opportunity to reorganize the assignment of theme variables.
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.
We'll have to revisit all the files again. so this is alright in my book 😁
Thanks @heetvachhani, good work! |
okay not a problem. You're welcome @newoga 😄 |
This is really lovely 😍 Thanks a lot @heetvachhani All green on ly end 👍 |
[Core] Typography moved inside muitheme
@heetvachhani Thanks! Can we deprecate the |
@oliviertassinari so what I have to do for that? |
Actually, that may not be a good idea. That make sense to keep it, as for the colors. |
Yeah I was wondering the same. Let's hold off, sometimes I wonder if material-ui could still use some tooling to help developers implement some of the ideas discussed here in the spec. @heetvachhani |
yes sure I can do that. @newoga. Just give me the list of components and will do it. |
@heetvachhani You can get the list and the exact position from my PR: I can't merge that because it breaks the docs. but if you remove all the usage of colors from these files I can merge that PR too. 2 birds with 1 stone 😍 😍 |
Thanks @alitaheri it will make my work easy . cool 2 birds with 1 "arrow" 😄 |
Reference to #2908