-
-
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] Remove context-pure mixin #3331
Conversation
No lets remove it. 👍 Also, i think it's used in the tests. |
Sounds good.
Thanks! Yeah still not quite sure why flat-button isn't working yet... |
} = this.constructor.getRelevantContextKeys(this.state.muiTheme); | ||
|
||
button: { | ||
color: buttonColor, |
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 is wrong. it should come from flatButton.color
not button.color
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.
Geez, I looked at the diff 100 times and for some reason I could not see this 😡. Thanks! This fixed everything. 👍
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.
glad I could help 😊
@alitaheri Thanks for finding that one difference. I tested it and it works, I'm going to resolve conflicts and squash... |
ae91e6d
to
462b97d
Compare
Alright, this should be ready. 😄 I did a search for |
Yeah 👍 This is awesome 😎 Let's have @oliviertassinari Take a final look at it too. and merge 😍 |
@@ -148,7 +129,7 @@ const DatePickerDialog = React.createClass({ | |||
|
|||
const { | |||
calendarTextColor, | |||
} = this.constructor.getRelevantContextKeys(this.state.muiTheme); | |||
} = this.state.muiTheme; |
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.state.muiTheme.datePicker
?
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.
Yeah this is a bug. good catch 👍
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.
Thank you!
@newoga Thanks for doing it! I'm the one how started adding the |
462b97d
to
15dfe1c
Compare
@oliviertassinari No problem, the evolution of this project has been a group effort! 🎉 |
This is great 👍 |
[Core] Remove context-pure mixin
Related to #2437
Resolves #2837
Can you guys take a look at this when you get a chance?
There's current a regression in this PR where when you hover over a<FlatButton />
, the hovered color doesn't disappear when you hover off. It seems to be related to assigning undefined tobackgroundColor
key isn't clearing the color (it should probably be set to transparent when not hovered).I just don't get how the current implementation is different than the one usingcontext-pure
because it was working before.@alitaheri Found the bug! 🐛
Edit:
Do we need to deprecate context-pure or can we just remove it? It's removed in this PR.We decided to remove it.