Allow using <nolink> and <button> in menu items

Created on 9 April 2025, 9 days ago

Problem/Motivation

When adding a new menu entry, menu item form help explains how and can be used to add a button or a text without link in any menu, however, radix interprets a non renderable item.url (such as or ) as

:

https://git.drupalcode.org/project/radix/-/blob/6.0.x/components/dropdow...

Steps to reproduce

Add menu item and do this considering the menu form help:

Start typing the title of a piece of content to select it. You can also enter an internal path such as /node/add or an external URL such as https://example.com. Enter to link to the front page. Enter to display link text only. Enter to display keyboard-accessible link text only.

Proposed resolution

What about if dropdown component adds another condition to convert it to hr and so on and is allowed?

If this is done it will be easier to set menu items as headers https://getbootstrap.com/docs/5.0/components/dropdowns/#headers e.g.

Feature request
Status

Active

Version

6.0

Component

Code

Created by

🇪🇸Spain aleix

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

Comments & Activities

Production build 0.71.5 2024