diff --git a/app/components/Button/Button.js b/app/components/Button/Button.js index 411031e44..27284174b 100644 --- a/app/components/Button/Button.js +++ b/app/components/Button/Button.js @@ -13,11 +13,11 @@ const RealButton = styled.button` color: ${color.white}; border-radius: 4px; font-size: 15px; - min-width: 32px; - min-height: 32px; + height: 36px; text-decoration: none; flex-shrink: 0; outline: none; + cursor: pointer; &::-moz-focus-inner { padding: 0; @@ -59,6 +59,7 @@ const RealButton = styled.button` &:disabled { background: ${color.slateLight}; + cursor: default; } `; @@ -71,23 +72,18 @@ const Label = styled.span` `; const Inner = styled.span` - padding: 4px 16px; + padding: 0 12px; display: flex; line-height: 28px; justify-content: center; align-items: center; - ${props => props.small && ` - padding: 1px 10px; - `} - ${props => props.hasIcon && (props.small ? 'padding-left: 6px;' : 'padding-left: 10px;')} `; export type Props = { type?: string, value?: string, - small?: boolean, icon?: React$Element, className?: string, children?: React$Element, @@ -97,7 +93,6 @@ export default function Button({ type = 'text', icon, children, - small, value, ...rest }: Props) { @@ -106,7 +101,7 @@ export default function Button({ return ( - + {hasIcon && icon} {hasText && } diff --git a/app/components/Input/Input.js b/app/components/Input/Input.js index 7897b3b3e..38a552dce 100644 --- a/app/components/Input/Input.js +++ b/app/components/Input/Input.js @@ -60,11 +60,11 @@ export type Props = { className?: string, }; -export default function Input({ type, label, ...rest }: Props) { +export default function Input({ type, label, className, ...rest }: Props) { const InputComponent = type === 'textarea' ? RealTextarea : RealInput; return ( - +