Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown style broke after upgrade to the new BsDropdown component after Navbar Collapse #1862

Closed
mravenash opened this issue Apr 4, 2017 · 2 comments

Comments

@mravenash
Copy link

On Navbar collapse the dropdpwn menu still looks broken.

dorpdownonnavbarcollapse

Following the HTML snippet:

html snippet:

html snippet

<ul class="nav navbar-nav navbar-right"> <li class="nav-item"> <a class="nav-link" href="javascript:void(0)"> <div style="position: initial!important"> <div dropdown class="dropdown"> <div dropdownToggle class="dropdown-toggle"> Profile <b class="caret"></b> </div> <ul *dropdownMenu class="dropdown-menu bs-dropdown-container" > <li><a (click)="showUserProfileModal()">My Profile</a></li> <li class="divider"></li> <li><a (click)="logOut()">Logout</a></li> </ul> </div> </div> </a> </li> </ul>

@valorkin
Copy link
Member

valorkin commented Apr 4, 2017

Placement should be bottom left, plus you need to style dropdown menu

@mravenash
Copy link
Author

mravenash commented Apr 4, 2017

Placement bottom right looks correct when the navbar is not collapsed. The dropdown menu shows on the bottom right of the navbar, as shown below.
dropdownwhennotcollapsed

The issue is that when we collapse navbar, dropdown menu goes out of the navebar. Dropdown module comes with few inline element styles causing the issue. If I get rid of "position:absolute" then it works as expected when navbar is collapsed and not collapsed.
dropdownbootstrap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants