@@ -7,8 +7,8 @@ $pfe-modal--breakpoint--medium: 640px;
77 --pfe-modal--MaxWidth : 70vw ;
88 --pfe-modal--MinWidth : 50vw ;
99 --pfe-modal--MaxWidth--mobile : 94vw ;
10- --pfe-modal--MaxHeight : none ;
11- --pfe-modal--MinHeight : 40 vh ;
10+ --pfe-modal--MaxHeight : 90 vh ;
11+ --pfe-modal--MaxHeight--mobile : 80 vh ;
1212 --pfe-modal--Padding--mobile : calc (#{pfe-var (container-padding )} * 1.25 ) calc (#{pfe-var (container-padding )} * 3 ) calc (#{pfe-var (container-padding )} * 1.25 ) calc (#{pfe-var (container-padding )} * 1.25 );
1313 --pfe-modal--Padding : calc (#{pfe-var (container-padding )} * 2 );
1414 --pfe-modal__overlay--BackgroundColor : #{pfe-color (overlay )} ;
@@ -32,7 +32,7 @@ $pfe-modal--breakpoint--medium: 640px;
3232 flex-direction : column ;
3333 align-items : center ;
3434 justify-content : center ;
35- z-index : 2 ;
35+ z-index : var ( --pfe-z--modal , 2000 ) ;
3636
3737 & [hidden ] {
3838 display : none ;
@@ -53,30 +53,29 @@ $pfe-modal--breakpoint--medium: 640px;
5353 }
5454 }
5555 & __wrapper {
56- z-index : 2 ;
5756 position : relative ;
5857 max-width : pfe-local (MaxWidth--mobile );
5958 min-width : pfe-local (MinWidth );
60- min-height : pfe-local (MinHeight );
6159 margin : 0 auto ;
6260 box-shadow : pfe-var (box-shadow--lg );
6361 background-color : pfe-color (surface--lightest );
6462 border-radius : #{pfe-var (ui--border-radius )} ;
65- overflow-y : auto ;
66- overscroll-behavior : contain ;
6763
6864 @media screen and (min-width : $pfe-modal--breakpoint--medium ) {
6965 max-width : pfe-local (MaxWidth );
70- max-height : pfe-local (MaxHeight );
7166 }
7267 }
7368 & __container {
7469 position : relative ;
7570 padding : var (--pfe-modal--Padding--mobile );
7671 max-width : calc (100% - #{pfe-var (ui--element--size )} );
72+ overflow-y : auto ;
73+ overscroll-behavior : contain ;
74+ max-height : pfe-local (MaxHeight--mobile );
7775
7876 @media screen and (min-width : $pfe-modal--breakpoint--medium ) {
7977 padding : pfe-local (Padding );
78+ max-height : pfe-local (MaxHeight );
8079 }
8180
8281 & [hidden ] {
0 commit comments