aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/ui
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:31:11 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:31:11 +0800
commit12b6877aeb0a6bcddab4193b62cd10347b8c328b (patch)
tree84066b8c74bf790a5d073de86014e727b7275db9 /packages/instant/src/components/ui
parent4b348e1e603ec45e1e4bf39533b4b204423cafa0 (diff)
downloaddexon-0x-contracts-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.gz
dexon-0x-contracts-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.zst
dexon-0x-contracts-12b6877aeb0a6bcddab4193b62cd10347b8c328b.zip
Pulsating holder element showing, even if amount is empty
Diffstat (limited to 'packages/instant/src/components/ui')
-rw-r--r--packages/instant/src/components/ui/container.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx
index 02b16e39f..5e2218c68 100644
--- a/packages/instant/src/components/ui/container.tsx
+++ b/packages/instant/src/components/ui/container.tsx
@@ -27,6 +27,7 @@ export interface ContainerProps {
backgroundColor?: ColorOption;
hasBoxShadow?: boolean;
zIndex?: number;
+ opacity?: number;
}
const PlainContainer: React.StatelessComponent<ContainerProps> = ({ children, className }) => (
@@ -54,6 +55,7 @@ export const Container = styled(PlainContainer)`
${props => cssRuleIfExists(props, 'border-top')}
${props => cssRuleIfExists(props, 'border-bottom')}
${props => cssRuleIfExists(props, 'z-index')}
+ ${props => cssRuleIfExists(props, 'opacity')}
${props => (props.hasBoxShadow ? `box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1)` : '')};
background-color: ${props => (props.backgroundColor ? props.theme[props.backgroundColor] : 'none')};
border-color: ${props => (props.borderColor ? props.theme[props.borderColor] : 'none')};