Icon does not show if <nolink> used as menu link

Created on 31 May 2023, about 1 year ago
Updated 15 July 2023, 12 months ago

Steps to reproduce

Add a new menu item using as directed by Core's link help text and upload a icon to be displayed for the menu item. Save the menu and view it on the site: the icon will not be displayed.

Proposed resolution

This is because the custom CSS generated by the module relies on a menu structure of
a.menu-icon-<id> or ul.links li.menu-icon-<id> a or ul.menu li.menu-icon-<id> a
As menu items with <nolink> are rendered with a <span> tag not a <a> tag, this structure does not exist. The custom CSS should be updated to include span for all CSS as well as a.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom MrDaleSmith

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

Comments & Activities

Production build 0.69.0 2024