Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 87bdf36

Browse files
fix(backdrop): use absolute positioning and anchors
css changes work better with sideNav, dialogs, and menus. fix opaque rendering for dialog backdrops
1 parent ee1fed1 commit 87bdf36

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/backdrop/backdrop.scss

+7-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ md-backdrop {
1818

1919
background-color: rgba(0,0,0,0);
2020

21-
position: fixed;
21+
position: absolute;
2222
height: 100%;
23+
bottom:0;
2324
left: 0;
2425
right: 0;
2526

@@ -32,7 +33,11 @@ md-backdrop {
3233
animation: $swift-ease-out-timing-function mdBackdropFadeIn 0.5s both;
3334
}
3435
&.ng-leave {
35-
animation: $swift-ease-in-timing-function mdBackdropFadeOut 0.2s both;
36+
animation: $swift-ease-in-timing-function mdBackdropFadeOut 0.4s both;
37+
}
38+
39+
&.md-opaque {
40+
background-color: rgba(0,0,0,0.42);
3641
}
3742
}
3843

src/components/sidenav/sidenav.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ $sidenav-min-space: 56px !default;
44
md-sidenav {
55
box-sizing: border-box;
66
position: absolute;
7+
flex-direction: column;
8+
z-index: $z-index-sidenav;
79

810
width: $sidenav-default-width;
911
min-width: $sidenav-default-width;
1012
max-width: $sidenav-default-width;
1113
bottom: 0;
12-
z-index: $z-index-sidenav;
1314
background-color: white;
1415
overflow: auto;
15-
flex-direction: column;
1616

1717
*,
1818
*:before,

0 commit comments

Comments
 (0)