diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-12-05 09:37:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 09:37:53 +0800 |
commit | 0a944244cfdaf99d15a2e4f002dd5e5013a28ae5 (patch) | |
tree | 56a580054601423a3c7eddfb5b3f148b2b1baa2c /packages/instant | |
parent | 9aff0dfed0035dbfe50632b2861063547c5b49ec (diff) | |
parent | feb715a08bba50f07600ef747246cb8417f98cfe (diff) | |
download | dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.tar dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.tar.gz dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.tar.bz2 dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.tar.lz dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.tar.xz dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.tar.zst dexon-sol-tools-0a944244cfdaf99d15a2e4f002dd5e5013a28ae5.zip |
Merge pull request #1379 from 0xProject/fix/instant/overlay-color
[instant] add stable class name to overlay close button and adjust overlay color
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/components/ui/overlay.tsx | 2 | ||||
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_overlay.tsx | 10 | ||||
-rw-r--r-- | packages/instant/src/constants.ts | 1 |
3 files changed, 10 insertions, 3 deletions
diff --git a/packages/instant/src/components/ui/overlay.tsx b/packages/instant/src/components/ui/overlay.tsx index 7d311dc2f..0b5eaf299 100644 --- a/packages/instant/src/components/ui/overlay.tsx +++ b/packages/instant/src/components/ui/overlay.tsx @@ -33,7 +33,7 @@ export const Overlay = Overlay.defaultProps = { zIndex: zIndex.overlayDefault, - backgroundColor: generateOverlayBlack(0.9), + backgroundColor: generateOverlayBlack(0.7), }; Overlay.displayName = 'Overlay'; diff --git a/packages/instant/src/components/zero_ex_instant_overlay.tsx b/packages/instant/src/components/zero_ex_instant_overlay.tsx index b3fb57dd6..96e560691 100644 --- a/packages/instant/src/components/zero_ex_instant_overlay.tsx +++ b/packages/instant/src/components/zero_ex_instant_overlay.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { ZeroExInstantContainer } from '../components/zero_ex_instant_container'; -import { MAIN_CONTAINER_DIV_CLASS, OVERLAY_DIV_CLASS } from '../constants'; +import { MAIN_CONTAINER_DIV_CLASS, OVERLAY_CLOSE_BUTTON_DIV_CLASS, OVERLAY_DIV_CLASS } from '../constants'; import { ColorOption } from '../style/theme'; import { Container } from './ui/container'; @@ -21,7 +21,13 @@ export const ZeroExInstantOverlay: React.StatelessComponent<ZeroExInstantOverlay <ZeroExInstantProvider {...rest}> <Overlay zIndex={zIndex} className={OVERLAY_DIV_CLASS}> <Flex height="100vh"> - <Container position="absolute" top="0px" right="0px" display={{ default: 'initial', sm: 'none' }}> + <Container + className={OVERLAY_CLOSE_BUTTON_DIV_CLASS} + position="absolute" + top="0px" + right="0px" + display={{ default: 'initial', sm: 'none' }} + > <Icon height={18} width={18} diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts index 295208b2d..506348092 100644 --- a/packages/instant/src/constants.ts +++ b/packages/instant/src/constants.ts @@ -8,6 +8,7 @@ export const DEFAULT_ZERO_EX_CONTAINER_SELECTOR = '#zeroExInstantContainer'; export const INJECTED_DIV_CLASS = 'zeroExInstantResetRoot'; export const INJECTED_DIV_ID = 'zeroExInstant'; export const OVERLAY_DIV_CLASS = 'zeroExInstantOverlay'; +export const OVERLAY_CLOSE_BUTTON_DIV_CLASS = 'zeroExInstantOverlayCloseButton'; export const MAIN_CONTAINER_DIV_CLASS = 'zeroExInstantMainContainer'; export const WEB_3_WRAPPER_TRANSACTION_FAILED_ERROR_MSG_PREFIX = 'Transaction failed'; export const GWEI_IN_WEI = new BigNumber(1000000000); |