Skip to content

Navigation does not render correctly when using level: 2 #5

Description

@Flauschbaellchen

I'm splitting my navigation into two seperate divs. One at the top and one as a sidebar.
simple-navigation provides a :level setting to archive this functionality (docs)

Using the Bootstrap3 renderer, the second menu is hidden (display: none;) as it is rendered like a dropdown menu.

View:

= render_navigation expand_all: true, level: 2

Navigation settings:

navigation.renderer = SimpleNavigationBootstrap::Bootstrap3
navigation.items do |primary|
    primary.item :main, 'Main', main_url do |sub_nav|
      sub_nav.item :sub, 'Sub', sub_url
    end
end

Level 2 should be rendered like level 1, level 3 like level 2 and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions