Skip to content

Commit

Permalink
fix(version dropdown): z-index fix for version dropdown and header (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilAlexei authored and valorkin committed Dec 4, 2017
1 parent a1a1c74 commit 784d881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demo/src/app/common/top-menu/top-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="logo" >
<div dropdownToggle class="dropdown-toggle">
{{currentVersion ? 'v' + currentVersion : ''}} <span class="caret"></span>
</div>
<ul *dropdownMenu class="dropdown-menu" role="menu">
<ul *dropdownMenu class="dropdown-menu header-dropdown" role="menu">
<li role="menuitem" *ngFor="let item of previousDocs">
<a class="dropdown-item" [href]="appUrl + (needPrefix ? item.url : item.unprefixedUrl) + (appHash ? '/' + appHash : '')">{{item.version}}</a>
</li>
Expand Down
3 changes: 3 additions & 0 deletions demo/src/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,9 @@ a:hover {
top: 0;
z-index: 1090; // to overlap most positioned elements in bootstrap
}
.header-dropdown {
z-index: 1090;
}
.modal-backdrop {
z-index: 2000; // to overlap header :)
}
Expand Down

0 comments on commit 784d881

Please sign in to comment.