Skip to content

Commit d940a43

Browse files
Merge pull request #671 from sudhanshutech/body/scroll
Make only modal-body scrollable
2 parents b53dd6b + 02d6fd0 commit d940a43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/custom/Modal/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ export const useModal = ({ headerIcon }: { headerIcon: React.ReactNode }): UseMo
100100

101101
export const ModalBody = styled(Paper)(({ theme }) => ({
102102
padding: '1rem',
103-
backgroundColor: theme.palette.background.surfaces
103+
backgroundColor: theme.palette.background.surfaces,
104+
overflowY: 'auto'
104105
}));
105106

106107
const StyledFooter = styled('div', {

0 commit comments

Comments
 (0)