diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-07 07:59:16 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-07 07:59:16 +0800 |
commit | 10da1e24e13b728c2837e5360a48fcb2913855a5 (patch) | |
tree | 6e2421617a5ac499ea1224ba50b99120dc6b2ca0 /packages/instant/src/components/ui/overlay.tsx | |
parent | 42c441fafa0a0c2de45904a2f67293152dd954b2 (diff) | |
download | dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.tar dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.tar.gz dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.tar.bz2 dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.tar.lz dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.tar.xz dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.tar.zst dexon-sol-tools-10da1e24e13b728c2837e5360a48fcb2913855a5.zip |
feat: make instant resistant to external styles
Diffstat (limited to 'packages/instant/src/components/ui/overlay.tsx')
-rw-r--r-- | packages/instant/src/components/ui/overlay.tsx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/packages/instant/src/components/ui/overlay.tsx b/packages/instant/src/components/ui/overlay.tsx index f1706c874..deb16a0e8 100644 --- a/packages/instant/src/components/ui/overlay.tsx +++ b/packages/instant/src/components/ui/overlay.tsx @@ -22,13 +22,15 @@ const PlainOverlay: React.StatelessComponent<OverlayProps> = ({ children, classN </Flex> ); export const Overlay = styled(PlainOverlay)` - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: ${props => props.zIndex} - background-color: ${overlayBlack}; + && { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + z-index: ${props => props.zIndex} + background-color: ${overlayBlack}; + } `; Overlay.defaultProps = { |