1- @import ' ../a11y/a11y' ;
1+ @use ' ../a11y/a11y' ;
22
33// We want overlays to always appear over user content, so set a baseline
44// very high z-index for the overlay container, which is where we create the new
55// stacking context for all overlays.
6- $cdk- z-index-overlay-container : 1000 !default ;
7- $cdk- z-index-overlay : 1000 !default ;
8- $cdk- z-index-overlay-backdrop : 1000 !default ;
6+ $z-index-overlay-container : 1000 !default ;
7+ $z-index-overlay : 1000 !default ;
8+ $z-index-overlay-backdrop : 1000 !default ;
99
1010// Background color for all of the backdrops
11- $cdk-overlay- dark-backdrop-background : rgba (0 , 0 , 0 , 0.32 ) !default ;
11+ $dark-backdrop-background : rgba (0 , 0 , 0 , 0.32 ) !default ;
1212
1313// Default backdrop animation is based on the Material Design swift-ease-out.
1414$backdrop-animation-duration : 400ms !default ;
1515$backdrop-animation-timing-function : cubic-bezier (0.25 , 0.8 , 0.25 , 1 ) !default ;
1616
1717
18- @mixin cdk- overlay () {
18+ @mixin overlay () {
1919 .cdk-overlay-container , .cdk-global-overlay-wrapper {
2020 // Disable events from being captured on the overlay container.
2121 pointer-events : none ;
@@ -30,7 +30,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
3030 // The overlay-container is an invisible element which contains all individual overlays.
3131 .cdk-overlay-container {
3232 position : fixed ;
33- z-index : $cdk- z-index-overlay-container ;
33+ z-index : $z-index-overlay-container ;
3434
3535 & :empty {
3636 // Hide the element when it doesn't have any child nodes. This doesn't
@@ -46,7 +46,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
4646 .cdk-global-overlay-wrapper {
4747 display : flex ;
4848 position : absolute ;
49- z-index : $cdk- z-index-overlay ;
49+ z-index : $z-index-overlay ;
5050 }
5151
5252 // A single overlay pane.
@@ -56,7 +56,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
5656 position : absolute ;
5757 pointer-events : auto ;
5858 box-sizing : border-box ;
59- z-index : $cdk- z-index-overlay ;
59+ z-index : $z-index-overlay ;
6060
6161 // For connected-position overlays, we set `display: flex` in
6262 // order to force `max-width` and `max-height` to take effect.
@@ -73,7 +73,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
7373 left : 0 ;
7474 right : 0 ;
7575
76- z-index : $cdk- z-index-overlay-backdrop ;
76+ z-index : $z-index-overlay-backdrop ;
7777 pointer-events : auto ;
7878 -webkit-tap-highlight-color : transparent ;
7979 transition : opacity $backdrop-animation-duration $backdrop-animation-timing-function ;
@@ -86,14 +86,14 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
8686 // to making it opaque using `opacity`. Note that we can't use the `cdk-high-contrast`
8787 // mixin, because we can't normalize the import path to the _a11y.scss both for the
8888 // source and when this file is distributed. See #10908.
89- @include cdk- high-contrast (active , off) {
89+ @include a11y . high-contrast (active , off) {
9090 opacity : 0.6 ;
9191 }
9292 }
9393 }
9494
9595 .cdk-overlay-dark-backdrop {
96- background : $cdk-overlay- dark-backdrop-background ;
96+ background : $dark-backdrop-background ;
9797 }
9898
9999 .cdk-overlay-transparent-backdrop {
@@ -110,7 +110,7 @@ $backdrop-animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !default;
110110 // overlay element's size to fit within the viewport.
111111 .cdk-overlay-connected-position-bounding-box {
112112 position : absolute ;
113- z-index : $cdk- z-index-overlay ;
113+ z-index : $z-index-overlay ;
114114
115115 // We use `display: flex` on this element exclusively for centering connected overlays.
116116 // When *not* centering, a top/left/bottom/right will be set which overrides the normal
0 commit comments