@@ -35,6 +35,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
3535 const {
3636 actionButton,
3737 appBarStyle,
38+ appBarZDepth,
3839 children,
3940 closeIcon,
4041 containerStyle,
@@ -62,7 +63,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
6263 ) }
6364 iconElementRight = { actionButton }
6465 showMenuIconButton = { onRequestClose != null }
65- zDepth = { immersive ? 0 : undefined }
66+ zDepth = { immersive ? 0 : appBarZDepth }
6667 />
6768 < div style = { { ...styles . container , ...containerStyle } } >
6869 { children }
@@ -74,6 +75,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
7475FullscreenDialog . propTypes = {
7576 actionButton : PropTypes . node ,
7677 appBarStyle : PropTypes . object ,
78+ appBarZDepth : PropTypes . oneOf ( [ 1 , 2 , 3 , 4 , 5 ] ) ,
7779 children : PropTypes . node ,
7880 closeIcon : PropTypes . node ,
7981 containerStyle : PropTypes . object ,
@@ -86,7 +88,8 @@ FullscreenDialog.propTypes = {
8688}
8789
8890FullscreenDialog . defaultProps = {
89- immersive : false
91+ immersive : false ,
92+ appBarZDepth : 1
9093}
9194
9295FullscreenDialog . contextTypes = {
0 commit comments