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
@@ -88,9 +88,9 @@ exports[`Empty app state matches snapshot 1`] = `
|
||||
title="Toggle Plugins"
|
||||
>
|
||||
<div
|
||||
className="css-1221zh3"
|
||||
className="css-1pfn0zl"
|
||||
color="#80a6f5"
|
||||
size={12}
|
||||
size={20}
|
||||
src="icons/sidebar_left.svg"
|
||||
/>
|
||||
</div>
|
||||
@@ -103,9 +103,9 @@ exports[`Empty app state matches snapshot 1`] = `
|
||||
title="Toggle Details"
|
||||
>
|
||||
<div
|
||||
className="css-1fkfe9s"
|
||||
className="css-13cmaba"
|
||||
color="#acacac"
|
||||
size={12}
|
||||
size={20}
|
||||
src="icons/sidebar_right.svg"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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