aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-13 00:14:24 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 00:15:50 +0800
commit88094002d3c4a755f2c4fd0ad4b155b0ce2adf19 (patch)
treefa14cc3c1288743de5d6713dcad8f968ad791c1a
parente57a5a6f820f7ec7fe013ee6f6e399b4f14809cf (diff)
downloaddexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.tar
dexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.tar.gz
dexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.tar.bz2
dexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.tar.lz
dexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.tar.xz
dexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.tar.zst
dexon-0x-contracts-88094002d3c4a755f2c4fd0ad4b155b0ce2adf19.zip
Fix border on button
-rw-r--r--packages/website/ts/@next/components/button.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/@next/components/button.tsx b/packages/website/ts/@next/components/button.tsx
index 3c22f705e..3b4ab8135 100644
--- a/packages/website/ts/@next/components/button.tsx
+++ b/packages/website/ts/@next/components/button.tsx
@@ -27,7 +27,7 @@ interface ButtonInterface {
export const Button = styled.button<ButtonInterface>`
appearance: none;
- border: ${props => !props.isNoBorder && `1px solid transparent`};
+ border: ${props => !props.isNoBorder && `1px solid ${(!props.isTransparent || props.bgColor) ? (props.bgColor || colors.brandLight) : 'transparent'}`};
display: inline-block;
background-color: ${props => (!props.isTransparent || props.bgColor) ? (props.bgColor || colors.brandLight) : 'transparent'};
border-color: ${props => (props.isTransparent && !props.isWithArrow) && '#6a6a6a'};