@@ -35,6 +35,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
35
35
const {
36
36
actionButton,
37
37
appBarStyle,
38
+ appBarZDepth,
38
39
children,
39
40
closeIcon,
40
41
containerStyle,
@@ -62,7 +63,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
62
63
) }
63
64
iconElementRight = { actionButton }
64
65
showMenuIconButton = { onRequestClose != null }
65
- zDepth = { immersive ? 0 : undefined }
66
+ zDepth = { immersive ? 0 : appBarZDepth }
66
67
/>
67
68
< div style = { { ...styles . container , ...containerStyle } } >
68
69
{ children }
@@ -74,6 +75,7 @@ export default function FullscreenDialog (props, { muiTheme }) {
74
75
FullscreenDialog . propTypes = {
75
76
actionButton : PropTypes . node ,
76
77
appBarStyle : PropTypes . object ,
78
+ appBarZDepth : PropTypes . oneOf ( [ 1 , 2 , 3 , 4 , 5 ] ) ,
77
79
children : PropTypes . node ,
78
80
closeIcon : PropTypes . node ,
79
81
containerStyle : PropTypes . object ,
@@ -86,7 +88,8 @@ FullscreenDialog.propTypes = {
86
88
}
87
89
88
90
FullscreenDialog . defaultProps = {
89
- immersive : false
91
+ immersive : false ,
92
+ appBarZDepth : 1
90
93
}
91
94
92
95
FullscreenDialog . contextTypes = {
0 commit comments