Skip to content

Commit c042cd8

Browse files
[DURACOM-180] Prevent header from covering media viewer controls (base theme)
1 parent 0208a78 commit c042cd8

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div [ngClass]="{'open': !(isNavBarCollapsed | async)}">
1+
<div [ngClass]="{'open': !(isNavBarCollapsed | async)}" id="header-navbar-wrapper">
22
<ds-themed-header></ds-themed-header>
33
<ds-themed-navbar></ds-themed-navbar>
44
</div>
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
:host {
22
position: relative;
3-
z-index: var(--ds-nav-z-index);
3+
div#header-navbar-wrapper {
4+
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid;
5+
}
46
}

src/app/navbar/navbar.component.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
nav.navbar {
22
background-color: var(--ds-navbar-bg);
3-
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid;
43
align-items: baseline;
54
}
65

@@ -12,9 +11,11 @@ nav.navbar {
1211
position: absolute;
1312
overflow: hidden;
1413
height: 0;
14+
z-index: var(--ds-nav-z-index);
1515
&.open {
1616
height: auto;
1717
min-height: 100vh; //doesn't matter because wrapper is sticky
18+
border-bottom: 1px var(--ds-header-navbar-border-bottom-color) solid; // open navbar covers header-navbar-wrapper border
1819
}
1920
}
2021
}

0 commit comments

Comments
 (0)