Skip to content

Commit

Permalink
fix(Dialog): scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Aug 15, 2019
1 parent ca23b28 commit e479cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ const Dialog = ({
<Card padding={ padding } args={ args } onClose={ onClose } stretch={ stretch }>
{
typeof children === 'function'
? (args) => <DialogInnerTag stretch={ stretch }>{ children(args) }</DialogInnerTag>
: <DialogInnerTag stretch={ stretch }>{ children }</DialogInnerTag>
? (args) => <DialogInnerTag>{ children(args) }</DialogInnerTag>
: <DialogInnerTag>{ children }</DialogInnerTag>
}
</Card>
</DialogTag>
Expand Down
5 changes: 2 additions & 3 deletions src/components/Dialog/Dialog.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ const [DialogInnerTag, themeDialogInner] = createThemeTag('dialogInner', {
flexDirection: 'column',
justifyContent: 'flex-start',
},

height: '100%',
},
modifiers: {
stretch: {
height: '100%',
},
},
});

Expand Down

0 comments on commit e479cf8

Please sign in to comment.