Skip to content

Commit aacdc72

Browse files
committed
fixed toggle nav menu item display
1 parent 706f1be commit aacdc72

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="ds-menu-item-wrapper text-md-center"
1+
<div class="navbar-section ds-menu-item-wrapper text-md-center"
22
[id]="'navbar-section-' + section.id">
33
<ng-container *ngComponentOutlet="(sectionMap$ | async).get(section.id).component; injector: (sectionMap$ | async).get(section.id).injector;"></ng-container>
44
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.navbar-section,
2+
.expandable-navbar-section {
3+
display: flex;
4+
flex-direction: column;
5+
justify-content: center;
6+
height: 100%;
7+
}

src/themes/custom/app/navbar/navbar.component.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
<img src="assets/images/vsb-cs-logo-w.svg" [attr.alt]="'menu.header.image.logo' | translate" />
99
</a>
1010

11-
<div class="w-100">
12-
<div id="collapsingNav">
11+
<div class="w-100 h-100">
12+
<div id="collapsingNav" class="h-100">
1313
<ng-container *ngIf="(isMobile$ | async) && (isAuthenticated$ | async)">
1414
<ds-user-menu [inExpandableNavbar]="true"></ds-user-menu>
1515
</ng-container>
16-
<div class="navbar-nav align-items-md-center mr-auto shadow-none gapx-3" role="menubar">
17-
<ng-container *ngFor="let section of (sections | async)">
18-
<ng-container
19-
*ngComponentOutlet="(sectionMap$ | async).get(section.id)?.component; injector: (sectionMap$ | async).get(section.id)?.injector;"></ng-container>
20-
</ng-container>
16+
<div class="h-100 navbar-nav align-items-md-center mr-auto shadow-none gapx-3" role="menubar">
17+
<div class="h-100" *ngFor="let section of (sections | async)">
18+
<div class="h-100"
19+
*ngComponentOutlet="(sectionMap$ | async).get(section.id)?.component; injector: (sectionMap$ | async).get(section.id)?.injector;">
20+
</div>
21+
</div>
2122
</div>
2223
</div>
2324
</div>

src/themes/custom/app/navbar/navbar.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ a.navbar-brand img {
5656
.navbar-nav {
5757
::ng-deep a.ds-menu-item {
5858
width: 100%;
59+
padding: .5rem 1rem;
5960
color: white;
6061

6162
&:hover, &:focus {

src/themes/custom/styles/_theme_sass_variable_overrides.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
$font-family-sans-serif: "Drive", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;
99

10-
1110
$navbar-dark-color: #FFFFFF;
1211

1312
/* Reassign color vars to semantic color scheme */

0 commit comments

Comments
 (0)