diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-12 21:28:33 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-12 21:28:33 +0800 |
commit | 0df51c37d172ec1c5b80c849869aaba665fef194 (patch) | |
tree | d3bf98c8651a0a8c8d0459a192ae9a4899cb9d44 /packages/website/ts/@next/components/button.tsx | |
parent | bb2581612a2d4935ab58ec91fb024edfafeb954e (diff) | |
download | dexon-sol-tools-0df51c37d172ec1c5b80c849869aaba665fef194.tar.gz dexon-sol-tools-0df51c37d172ec1c5b80c849869aaba665fef194.tar.zst dexon-sol-tools-0df51c37d172ec1c5b80c849869aaba665fef194.zip |
Edits banner, types newlayout
Diffstat (limited to 'packages/website/ts/@next/components/button.tsx')
-rw-r--r-- | packages/website/ts/@next/components/button.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx index db6c5d5c2..3f14b59bd 100644 --- a/packages/website/ts/@next/components/button.tsx +++ b/packages/website/ts/@next/components/button.tsx @@ -16,7 +16,6 @@ interface ButtonInterface { isWithArrow?: boolean; isAccentColor?: boolean; hasIcon?: boolean | string; - isInline?: boolean; href?: string; onClick?: () => any; theme?: { @@ -27,7 +26,7 @@ interface ButtonInterface { export const Button = styled.button<ButtonInterface>` appearance: none; border: ${props => !props.isNoBorder && `1px solid transparent`}; - display: ${props => props.isInline && 'inline-block'}; + display: inline-block; background-color: ${props => (!props.isTransparent || props.bgColor) ? (props.bgColor || colors.brandLight) : 'transparent'}; border-color: ${props => (props.isTransparent && !props.isWithArrow) && '#6a6a6a'}; color: ${props => props.isAccentColor ? props.theme.linkColor : (props.color || props.theme.textColor)}; |