Skip to content

Commit b1c10d1

Browse files
crisbetojelbourn
authored andcommitted
fix(overlay): allow overlay sass variables to be overwritten (#15507)
Marks the overlay-related Sass variables as `default` so that they can be overwritten. Fixes #15467.
1 parent 1ac9386 commit b1c10d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cdk/overlay/_overlay.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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-
$cdk-z-index-overlay-container: 1000;
5-
$cdk-z-index-overlay: 1000;
6-
$cdk-z-index-overlay-backdrop: 1000;
4+
$cdk-z-index-overlay-container: 1000 !default;
5+
$cdk-z-index-overlay: 1000 !default;
6+
$cdk-z-index-overlay-backdrop: 1000 !default;
77

88
// Background color for all of the backdrops
9-
$cdk-overlay-dark-backdrop-background: rgba(0, 0, 0, 0.32);
9+
$cdk-overlay-dark-backdrop-background: 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;

0 commit comments

Comments
 (0)