aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/ui/container.tsx
diff options
context:
space:
mode:
authorFrancesco Agosti <francesco.agosti93@gmail.com>2018-11-09 08:29:34 +0800
committerGitHub <noreply@github.com>2018-11-09 08:29:34 +0800
commit3eac119399d3e2729ce65f748d9fb31207ac2540 (patch)
tree558aa4bb76eae3418cf411fcfba089ef8edf19ef /packages/instant/src/components/ui/container.tsx
parent117e2f583ff44bdb63340a2134edea0f3ecb77b3 (diff)
parentcd44470a29c48275e6a2a4bba42734d8f900d387 (diff)
downloaddexon-0x-contracts-3eac119399d3e2729ce65f748d9fb31207ac2540.tar.gz
dexon-0x-contracts-3eac119399d3e2729ce65f748d9fb31207ac2540.tar.zst
dexon-0x-contracts-3eac119399d3e2729ce65f748d9fb31207ac2540.zip
Merge pull request #1230 from 0xProject/feature/instant/dropdown-ui
[instant] Dropdown Component Skeleton
Diffstat (limited to 'packages/instant/src/components/ui/container.tsx')
-rw-r--r--packages/instant/src/components/ui/container.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx
index c42082ed5..8aa5db9e5 100644
--- a/packages/instant/src/components/ui/container.tsx
+++ b/packages/instant/src/components/ui/container.tsx
@@ -34,6 +34,7 @@ export interface ContainerProps {
cursor?: string;
overflow?: string;
darkenOnHover?: boolean;
+ boxShadowOnHover?: boolean;
flexGrow?: string | number;
}
@@ -42,7 +43,6 @@ export const Container =
ContainerProps >
`
&& {
- all: initial;
box-sizing: border-box;
${props => cssRuleIfExists(props, 'flex-grow')}
${props => cssRuleIfExists(props, 'position')}
@@ -79,6 +79,7 @@ export const Container =
props.backgroundColor ? darken(0.05, props.theme[props.backgroundColor]) : 'none'
}`
: ''};
+ ${props => (props.boxShadowOnHover ? 'box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1)' : '')};
}
}
`;