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

responsive toggle not working #187

Open
panaak opened this issue Apr 12, 2016 · 2 comments
Open

responsive toggle not working #187

panaak opened this issue Apr 12, 2016 · 2 comments

Comments

@panaak
Copy link

panaak commented Apr 12, 2016

hi,

just tried to install clean rails app with the latest foundation-rails 6.2.0.1

found out responsive toggle doesn't quite work.

.title-bar{"data-hide-for" => "medium", "data-responsive-toggle" => "example-menu"}
  %button.menu-icon{"data-toggle" => "", :type => "button"}
  .title-bar-title Menu
#example-menu.top-bar
  .top-bar-left
    %ul.dropdown.menu{"data-dropdown-menu" => ""}
      %li.menu-text Site Title
      %li.has-submenu
        %a{:href => "#"} One
        %ul.submenu.menu.vertical{"data-submenu" => ""}
          %li
            %a{:href => "#"} One
          %li
            %a{:href => "#"} Two
          %li
            %a{:href => "#"} Three
      %li
        %a{:href => "#"} Two
      %li
        %a{:href => "#"} Three
  .top-bar-right
    %ul.menu
      %li
        %input{:placeholder => "Search", :type => "search"}/
      %li
        %button.button{:type => "button"} Search

this is the example code from foundation website

the motion plugins are imported, the css files are in place. still the menu doesn't toggle and the menu-icon isn't displayed.

dont' know if it is a foundation's or foundation-rails'es problem..

@decabeza
Copy link

decabeza commented Nov 4, 2016

It seems to fails from 6.2.4.0 version.

By the moment you can specifies previous version in your Gemfile:

gem 'foundation-rails', '6.2.3.0'

If you use turbolinks also check #201 and #177

@decabeza
Copy link

Hi @panaak,

Try to add @include foundation-menu-icon on foundation_and_overrides.scss file.

Works for me! 😉

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