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 and navbar #22628

Closed
danijelGombac opened this issue May 16, 2017 · 8 comments
Closed

Dropdown and navbar #22628

danijelGombac opened this issue May 16, 2017 · 8 comments

Comments

@danijelGombac
Copy link

I try use the new dropdown with popper, but i can't use it in navbar. Popper always add position absolute to dropdown. How to be used dropdown and navbar in mobile?

@Johann-S
Copy link
Member

Johann-S commented May 16, 2017

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via JS Bin or CodePen and report back with your link, Bootstrap version, and specific browser and OS details.

EDIT : I tried on Chrome with mobile emulator and I don't see any problem with that, see this file to know how to use dropdown with navbar : https://github.com/twbs/bootstrap/blob/v4-dev/js/tests/visual/dropdown.html#L13

@danijelGombac
Copy link
Author

I was tried to create a JS Bin test, but alerted me: Sorry this bin is too large for as to save.

@danijelGombac
Copy link
Author

The navbar css:

 .navbar-expand-md .navbar-nav .dropdown-menu {
    position: static;
    float: none;
}

But what can i see the position was overridden by popper and cannot be applied.

@Johann-S
Copy link
Member

I made a CodePen and I don't see any issues here : https://codepen.io/Johann-S/pen/RVBoGM
Maybe I misunderstood something 😣

@danijelGombac
Copy link
Author

Alpha 6 navbar for compared. Is different in mobile.

https://jsbin.com/cafeceyuwu/edit?html,css,js,output

@Johann-S
Copy link
Member

Johann-S commented May 16, 2017

Yes I see the display is different 👍
But why is it a problem for you ?

It seems it's some style I didn't removed from my PR when I added Popper

@danijelGombac
Copy link
Author

I don't use navbar like in documentation. In mobile i move it to the left and is opened like a drawer:

http://git.blivesta.com/drawer/

This dropdown menu is not very good for my design. The old version can expand and is better looking.

@Johann-S
Copy link
Member

Hmm ok I see thank you for the explanation 👍

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

No branches or pull requests

2 participants