11// We want overlays to always appear over user content, so set a baseline
22// very high z-index for the overlay container, which is where we create the new
33// stacking context for all overlays.
4- $z-index- overlay-container : 1000 !default ;
5- $z-index-overlay : 1000 !default ;
6- $z-index- overlay-backdrop : 1000 !default ;
4+ $overlay-container-z-index : 1000 !default ;
5+ $overlay- z-index : 1000 !default ;
6+ $overlay-backdrop-z-index : 1000 !default ;
77
88// Background color for all of the backdrops
9- $dark -backdrop-background : rgba (0 , 0 , 0 , 0.32 ) !default ;
9+ $overlay -backdrop-color : rgba (0 , 0 , 0 , 0.32 ) !default ;
1010
1111// Default backdrop animation is based on the Material Design swift-ease-out.
1212$backdrop-animation-duration : 400ms !default ;
@@ -28,7 +28,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
2828 // The overlay-container is an invisible element which contains all individual overlays.
2929 .cdk-overlay-container {
3030 position : fixed ;
31- z-index : $z-index- overlay-container ;
31+ z-index : $overlay-container-z-index ;
3232
3333 & :empty {
3434 // Hide the element when it doesn't have any child nodes. This doesn't
@@ -44,7 +44,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
4444 .cdk-global-overlay-wrapper {
4545 display : flex ;
4646 position : absolute ;
47- z-index : $z-index-overlay ;
47+ z-index : $overlay- z-index ;
4848 }
4949
5050 // A single overlay pane.
@@ -54,7 +54,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
5454 position : absolute ;
5555 pointer-events : auto ;
5656 box-sizing : border-box ;
57- z-index : $z-index-overlay ;
57+ z-index : $overlay- z-index ;
5858
5959 // For connected-position overlays, we set `display: flex` in
6060 // order to force `max-width` and `max-height` to take effect.
@@ -71,7 +71,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
7171 left : 0 ;
7272 right : 0 ;
7373
74- z-index : $z-index- overlay-backdrop ;
74+ z-index : $overlay-backdrop-z-index ;
7575 pointer-events : auto ;
7676 -webkit-tap-highlight-color : transparent ;
7777 transition : opacity $backdrop-animation-duration $backdrop-animation-timing-function ;
@@ -92,7 +92,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
9292 }
9393
9494 .cdk-overlay-dark-backdrop {
95- background : $dark -backdrop-background ;
95+ background : $overlay -backdrop-color ;
9696 }
9797
9898 .cdk-overlay-transparent-backdrop {
@@ -109,7 +109,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
109109 // overlay element's size to fit within the viewport.
110110 .cdk-overlay-connected-position-bounding-box {
111111 position : absolute ;
112- z-index : $z-index-overlay ;
112+ z-index : $overlay- z-index ;
113113
114114 // We use `display: flex` on this element exclusively for centering connected overlays.
115115 // When *not* centering, a top/left/bottom/right will be set which overrides the normal
0 commit comments