aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-11-30 00:16:34 +0800
committerGitHub <noreply@github.com>2018-11-30 00:16:34 +0800
commit64e2b91482dbcaf7e016df6d4865e9dc08d6ca55 (patch)
treeae3fed2dd6df66b550b09c9834015ab70e48f0be /packages/instant/src
parentecc417069d4e0502052cc529d1d213916758b93a (diff)
parent3c000e70e3fe507b199871879dde54bcefe01e1e (diff)
downloaddexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.tar
dexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.tar.gz
dexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.tar.bz2
dexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.tar.lz
dexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.tar.xz
dexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.tar.zst
dexon-sol-tools-64e2b91482dbcaf7e016df6d4865e9dc08d6ca55.zip
Merge pull request #1346 from 0xProject/fix/instant/token-selector-hover
[instant] Half opacity on clickable text hover
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/ui/text.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/instant/src/components/ui/text.tsx b/packages/instant/src/components/ui/text.tsx
index 8e573d7b9..282477758 100644
--- a/packages/instant/src/components/ui/text.tsx
+++ b/packages/instant/src/components/ui/text.tsx
@@ -1,4 +1,3 @@
-import { darken } from 'polished';
import * as React from 'react';
import { ColorOption, styled } from '../../style/theme';
@@ -31,7 +30,7 @@ export const Text: React.StatelessComponent<TextProps> = ({ href, onClick, ...re
return <StyledText {...rest} onClick={computedOnClick} />;
};
-const darkenOnHoverAmount = 0.3;
+const opacityOnHoverAmount = 0.5;
export const StyledText =
styled.div <
TextProps >
@@ -56,8 +55,7 @@ export const StyledText =
${props => (props.textAlign ? `text-align: ${props.textAlign}` : '')};
${props => (props.width ? `width: ${props.width}` : '')};
&:hover {
- ${props =>
- props.onClick ? `color: ${darken(darkenOnHoverAmount, props.theme[props.fontColor || 'white'])}` : ''};
+ ${props => (props.onClick ? `opacity: ${opacityOnHoverAmount};` : '')};
}
}
`;