-
-
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
[IconButton] Remove style-propable mixin #3232
Conversation
@@ -278,7 +271,7 @@ const IconButton = React.createClass({ | |||
<FontIcon | |||
className={iconClassName} | |||
hoverColor={disabled ? null : iconHoverColor} | |||
style={this.mergeStyles( | |||
style={Object.assign( | |||
styles.icon, | |||
disabled ? styles.disabled : {}, |
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.
Although it doesn't matter, but there's really no need to allocate an extra object for this
disabled && styles.disabled
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.
Good find! I agree 👍
f394a34
to
7357039
Compare
|
All good 😄 |
@newoga Thanks! |
[IconButton] Remove style-propable mixin
No description provided.