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

Problem with nav bar in mobile (small screen) mode #109

Closed
vklap opened this issue Aug 24, 2014 · 2 comments
Closed

Problem with nav bar in mobile (small screen) mode #109

vklap opened this issue Aug 24, 2014 · 2 comments

Comments

@vklap
Copy link

vklap commented Aug 24, 2014

Hi Adam,

Thank you so much for Kickstrap - it's really awesome :)

Whenever in mobile (i.e. working with small screens - reproducible also in browsers), then whenever I click on the collapse button (i.e. the one with data-toggle="collapse", as shown bellow) - it opens & closes the navbar menu very quickly. This makes the navbar impossible to use in small screens.

Here is a small part of the code:

nav(role="navigation" class="navbar navbar-default navbar-fixed-top")
div(class="container-fluid")
div(class="navbar-header")
button(type="button", data-toggle="collapse", data-target=".navbar-ex1-collapse", class="navbar-toggle")
span(class="sr-only") Toggle Navigation
span(class="icon-bar")
span(class="icon-bar")
span(class="icon-bar")
a(href="/", class="navbar-brand") My Website

div(class="navbar-collapse collapse navbar-ex1-collapse")
  ul(class="nav navbar-nav")

Thanks a lot!
Victor

@vklap
Copy link
Author

vklap commented Aug 24, 2014

I forgot to mention, that the above issue occurs in "cyborg" and "slate".

@vklap
Copy link
Author

vklap commented Aug 25, 2014

It works great. My mistake:

The above markup:
a(href="/", class="navbar-brand") My Website
Should be:
a(href="#", class="navbar-brand") My Website

Otherwise, each click on the hyperlink will trigger a page load, and thus get a new home page with a closed navbar.

@vklap vklap closed this as completed Aug 25, 2014
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

1 participant