fix: scrollbars showing up in modal with mouse connected, use auto instead of scroll

This commit is contained in:
Moody Salem 2021-06-25 10:00:25 -05:00
parent 9b1ef415c6
commit 25f5ed9983
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -30,7 +30,7 @@ const StyledDialogContent = styled(({ minHeight, maxHeight, mobile, isOpen, ...r
)).attrs({
'aria-label': 'dialog',
})`
overflow-y: scroll;
overflow-y: auto;
&[data-reach-dialog-content] {
margin: 0 0 2rem 0;
@ -39,7 +39,7 @@ const StyledDialogContent = styled(({ minHeight, maxHeight, mobile, isOpen, ...r
box-shadow: 0 4px 8px 0 ${({ theme }) => transparentize(0.95, theme.shadow1)};
padding: 0px;
width: 50vw;
overflow-y: scroll;
overflow-y: auto;
overflow-x: hidden;
align-self: ${({ mobile }) => (mobile ? 'flex-end' : 'center')};