fix icon size
Summary: Icon size passed to a button was ignored. Reviewed By: passy Differential Revision: D10301573 fbshipit-source-id: 00117a35622bbd490b74359f52ecc07929390205
This commit is contained in:
committed by
Facebook Github Bot
parent
a379b18f64
commit
f7cb4667c4
@@ -326,7 +326,7 @@ class Button extends React.Component<
|
||||
iconComponent = (
|
||||
<Icon
|
||||
name={icon}
|
||||
size={iconSize || this.props.compact === true ? 12 : 16}
|
||||
size={iconSize || (this.props.compact === true ? 12 : 16)}
|
||||
color={color}
|
||||
variant={iconVariant || 'filled'}
|
||||
hasText={Boolean(children)}
|
||||
|
||||
Reference in New Issue
Block a user