Skip to content

Commit

Permalink
Test out previous changes in spin
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuraima Estevez committed Jan 17, 2024
1 parent 966d190 commit cf8c9ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions polaris-react/src/components/Modal/Modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

$small-width: 620px;

.Body,
.NoScrollBody {
flex-grow: 1;

@media #{$p-breakpoints-md-up} {
flex-grow: unset;
}
}

.Body {
width: 100%;
}
Expand Down
8 changes: 5 additions & 3 deletions polaris-react/src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ export const Modal: React.FunctionComponent<ModalProps> & {
);

const scrollContainerMarkup = noScroll ? (
<Box width="100%" overflowX="hidden" overflowY="hidden">
{body}
</Box>
<div className={styles.NoScrollBody}>
<Box width="100%" overflowX="hidden" overflowY="hidden">
{body}
</Box>
</div>
) : (
<Scrollable
shadow
Expand Down

0 comments on commit cf8c9ac

Please sign in to comment.