aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-29 02:25:04 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-29 02:25:04 +0800
commit1b23c430fcb6e4e816b60f85343b5fe009ab4754 (patch)
tree20d253014344699df2ca4bd76e5ac6985edbccbc
parent53f8e1b3b426424bf4459605b48e706eb7fb6d90 (diff)
downloaddexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.tar
dexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.tar.gz
dexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.tar.bz2
dexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.tar.lz
dexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.tar.xz
dexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.tar.zst
dexon-sol-tools-1b23c430fcb6e4e816b60f85343b5fe009ab4754.zip
fix(instant): Half opacity instead of darkening on hover for clickable text
-rw-r--r--packages/instant/src/components/ui/text.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/instant/src/components/ui/text.tsx b/packages/instant/src/components/ui/text.tsx
index 8e573d7b9..e149e2d8e 100644
--- a/packages/instant/src/components/ui/text.tsx
+++ b/packages/instant/src/components/ui/text.tsx
@@ -31,7 +31,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 +56,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};` : '')};
}
}
`;