Skip to content

Commit

Permalink
Merge pull request #217 from TAMULib/sprint11-188-mega-menu-text-wrap…
Browse files Browse the repository at this point in the history
…-on-expand-collapse

Added mobile-menu-content class for mobile-menu template
  • Loading branch information
rmathew1011 committed Oct 1, 2020
2 parents c42c8fe + 1084496 commit b96fc06
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
</div>
</nav>

<div class="title-row row m-0">
<div class="container d-flex align-items-center">
<a *ngIf="headerTitleUrl" [href]="headerTitleUrl"><span class="h1 text-white">{{headerTitle}}</span></a>
Expand Down Expand Up @@ -42,7 +42,7 @@
</svg>
</div>
</div>
<div class="flex-fill align-self-stretch">
<div class="mobile-menu-content flex-fill align-self-stretch">
<ng-container *ngTemplateOutlet="mobileMenuContent"></ng-container>
</div>
</nav>
Expand Down
16 changes: 14 additions & 2 deletions projects/wvr-elements/src/lib/wvr-header/wvr-header.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,20 @@
cursor: pointer;
}

.mobile-menu {
display: inline-block;
.mobile-menu-content {
white-space: nowrap !important;
::ng-deep {
.section-title {
white-space: nowrap !important;
}
tl-nav-li > a {
white-space: nowrap !important;
}
wvr-dropdown-element,
.section-title {
min-width: 200px;
}
}
}

.mobile-menu.closed {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AfterContentChecked, Component, HostBinding, Injector, Input, OnInit } from '@angular/core';
import { WvrBaseComponent } from '../shared/wvr-base.component';

console.log("BUILD 6");
/**
* Intended to appear at the top of document and provides for branding, links and page title.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</head>

<body>
<wvr-header hidden-in-mobile="true">
<wvr-header>
<wvr-nav-list top-navigation>
<wvr-nav-li>
<wvr-dropdown
Expand Down

0 comments on commit b96fc06

Please sign in to comment.