Add overflow scroll to instant overlay

This commit is contained in:
fragosti 2019-04-22 18:07:20 -07:00
parent 7ea99baeb2
commit 2f72e15ea7
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@ export interface FlexProps {
align?: 'flex-start' | 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'flex-end';
width?: MediaChoice;
height?: MediaChoice;
overflow?: string;
backgroundColor?: ColorOption;
inline?: boolean;
flexGrow?: number | string;
@ -25,6 +26,7 @@ export const Flex = styled.div<FlexProps>`
background-color: ${props => (props.backgroundColor ? props.theme[props.backgroundColor] : 'none')};
${props => (props.width ? stylesForMedia('width', props.width) : '')}
${props => (props.height ? stylesForMedia('height', props.height) : '')}
${props => (props.overflow ? `overflow: ${props.overflow}` : '')};
}
`;

View File

@ -20,7 +20,7 @@ export const ZeroExInstantOverlay: React.StatelessComponent<ZeroExInstantOverlay
return (
<ZeroExInstantProvider {...rest}>
<Overlay zIndex={zIndex} className={OVERLAY_DIV_CLASS}>
<Flex height="100vh">
<Flex height="100vh" overflow="scroll">
<Container
className={OVERLAY_CLOSE_BUTTON_DIV_CLASS}
position="absolute"