Skip to content

Commit

Permalink
Merge pull request #671 from sudhanshutech/body/scroll
Browse files Browse the repository at this point in the history
Make only modal-body scrollable
  • Loading branch information
sudhanshutech authored Jul 10, 2024
2 parents b53dd6b + 02d6fd0 commit d940a43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/custom/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export const useModal = ({ headerIcon }: { headerIcon: React.ReactNode }): UseMo

export const ModalBody = styled(Paper)(({ theme }) => ({
padding: '1rem',
backgroundColor: theme.palette.background.surfaces
backgroundColor: theme.palette.background.surfaces,
overflowY: 'auto'
}));

const StyledFooter = styled('div', {
Expand Down

0 comments on commit d940a43

Please sign in to comment.