Make nav default to dropdown links optional

Created on 24 January 2022, over 3 years ago
Updated 21 June 2024, about 1 year ago

Problem/Motivation

Currently, when one wants to display multiple level menus, the only output available is dropdown. However, it may be the case that a themer may want a menu, without dropdowns, such as with a vertical menu in the sidebar or footer.

Steps to reproduce

  1. Ensure the main menu has at least one menu with a sub-link.
  2. Under Structure > Block Layout, place a Main Menu block within the Content region.

Proposed resolution

Dropdown links in nav should be optional.

There are a myriad of ways a themer may tackle this, but to provide a simple approach, we should consider making dropdown an optional config within the nav component.

✨ Feature request
Status

Closed: outdated

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcandan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • No longer supported/outdated, closing - feel free to open a MR if applicable.

  • First commit to issue fork.
  • This was closed without integrating the change that conditions the "is_dropdown" class on `item.is_expanded` and `item.is_below`. A recent change broke the patch, so I'm uploading a new one.

Production build 0.71.5 2024