Skip to content

Commit c5b27d1

Browse files
archit-mahtojraff
authored andcommitted
feat(community-modal): applied max-height to modal overlay
applied max-height to modal overlay for android devices
1 parent 111f7fb commit c5b27d1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

packages/Modal/__tests__/__snapshots__/Modal.spec.jsx.snap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,12 @@ exports[`Modal renders 1`] = `
249249
background-color: #fff;
250250
width: 100%;
251251
height: 100%;
252+
max-height: 100vh;
252253
position: fixed;
253254
top: 0;
255+
bottom: 0;
254256
left: 0;
257+
right: 0;
255258
z-index: 1400;
256259
}
257260
@@ -795,9 +798,12 @@ exports[`Modal renders 1`] = `
795798
background-color: #fff;
796799
width: 100%;
797800
height: 100%;
801+
max-height: 100vh;
798802
position: fixed;
799803
top: 0;
804+
bottom: 0;
800805
left: 0;
806+
right: 0;
801807
z-index: 1400;
802808
}
803809

packages/Modal/styles.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ export const FullScreenOverlay = styled.div(props => {
1010
backgroundColor: colorWhite,
1111
width: '100%',
1212
height: '100%',
13+
maxHeight: '100vh',
1314
position: 'fixed',
1415
top: '0',
16+
bottom: '0',
1517
left: '0',
18+
right: '0',
1619
zIndex: '1400',
1720
...media.from('md').css({
1821
backgroundColor: 'rgba(255, 255, 255, 0.94)',

0 commit comments

Comments
 (0)