-
-
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
[Card] Remove style-propable mixin #3198
Conversation
I noticed a few of these components imported from |
@alitaheri Oh right, I totally forgot about that PR! 👍 It seems like that PR addresses the very components I'm talking about too! Awesome, I probably should've waited until that was merged before starting these components 😅 |
I was worried about conflicts too, but then I looked at both sources and I don't see conflicts. even if there are. they will be vary minor. so no worries 😁 |
Okay awesome! 😄 |
return { | ||
root: { | ||
padding: 16, | ||
fontSize: '14px', |
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.
fontSize: 14,
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.
Thanks!
Fixed |
@@ -107,7 +102,7 @@ const Card = React.createClass({ | |||
...other, | |||
} = this.props; | |||
|
|||
let mergedStyles = this.mergeStyles({ | |||
const mergedStyles = Object.assign({}, { |
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.
Object.assign({
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.
Thanks!
Fixed two unnecessary |
Just rebased onto master to get changes from #3215. |
@newoga The travis task fails 😁. |
@oliviertassinari Looks like a missing space. I'll fix it. Thanks! |
Fixed! |
getStyles() { | ||
const contextKeys = this.constructor.getRelevantContextKeys(this.state.muiTheme); | ||
|
||
const directionStyle = contextKeys.isRtl ? { |
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 think that the isRtl
logic is missing.
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.
My bad, rtl(muiTheme)
should handle it 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.
Yeah I tested this and realized it was a bug because it was reversing the rtl
logic 😁
@newoga Thanks! |
[Card] Remove style-propable mixin
No description provided.