Use item.attributes on the <li> in the radix:nav SDC

Created on 15 January 2025, 7 days ago

Problem/Motivation

Currently the nav item classes in the radix:nav SDC are printed using the Twig join filter.
So the item.attributes are dropped at all. This is at least problematic for modules like menu attributes, the configured menu item classes will never printed.

Steps to reproduce

Proposed resolution

Use
<li{{ item.attributes.addClass(nav_item_classes) }}>
instead
<li class="{{ nav_item_classes|join(' ') }}">

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

6.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024