Repository URL to install this package:
Version:
0.9.6 ▾
|
// import Button from './BaseButtonAtom'
import React from 'react'
import { isString } from 'exotic'
import Button from './BlueButton'
const GreenButtonNamed = props => (
<Button {...props} className={'button green-button ' + props.className} />
)
const GreenButton = styled.withComponent(GreenButtonNamed) `
@font(13, regular);
font-weight: 900;
background-color: $colors-primary-darkgreen;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
// why?
flex: 1;
align-self: flex-end;
${props =>
(props.isDisabled || props.state === 'disabled') &&
styled.css `
opacity: 0.5;
background-color: $colors-primary-darkgreen;
`}
/* when the button has a link inside of it... */
a {
color: $colors-main-background;
}
`
export { GreenButton }
export default GreenButton