Skip to content

Commit

Permalink
fix(circularbutton): fix text size
Browse files Browse the repository at this point in the history
  • Loading branch information
ritz078 committed May 9, 2019
1 parent 4b4d0be commit b88006c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/CircularButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ const CircularButton: React.FunctionComponent<CircularButtonProps> = ({
subLabelColor = colors.white.base
}) => {
const dimension = small ? 34 : 44;
const textSize = small ? 13 : 16;
return (
<View
style={[
Expand All @@ -50,11 +49,11 @@ const CircularButton: React.FunctionComponent<CircularButtonProps> = ({
}
]}
>
{!!iconName && <Icon size={textSize + 2} name={iconName} color={color} />}
{!!iconName && <Icon size={15} name={iconName} color={color} />}

<ConditionalComponent conditional={label}>
{_label => (
<Text size={textSize} lineHeight={20} bold color={color}>
<Text size={13} lineHeight={20} bold color={color}>
{_label}
</Text>
)}
Expand Down

0 comments on commit b88006c

Please sign in to comment.