aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/ui
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-20 06:01:54 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-20 06:01:54 +0800
commita017f5e38561a152e8a757b340c1b0c6b3a3e21f (patch)
tree5ff144d227cab99c80d19bc7b4c3617e89c12e77 /packages/instant/src/components/ui
parent100f446031e84c367f1d0852ef60fd04d4544b9f (diff)
parent2c308c0f4c172293e634d27f731d026e0361e639 (diff)
downloaddexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar
dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.gz
dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.bz2
dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.lz
dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.xz
dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.zst
dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/beta-render-et-al
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')};