Add overflow scroll to instant overlay
This commit is contained in:
parent
7ea99baeb2
commit
2f72e15ea7
@ -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}` : '')};
|
||||
}
|
||||
`;
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user