[4.0.0-alpha6] Icons on menu do not works

Created on 1 November 2024, 14 days ago

Problem/Motivation

Links in the main menu on which icons have been added are not displayed as they should be.
The icon does not appear and the link title is replaced by the word “Array”.

Steps to reproduce

juste add an icon to a link in the main menu

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇫🇷France steveoriol Grenoble 🇫🇷

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

Comments & Activities

  • Issue created by @steveoriol
  • 🇫🇷France G4MBINI Bègles

    Transferring this issue from UI Suite DaisyUI to UI Icons.

    I also reproduce this issue as follows :

    1. create a menu link
    2. assign an icon to the menu link
    3. choose any link icon display
    4. save

    Tested on last version of Drupal 11, UI Suite DaisyUI alpha5, Heroicons 2.1.5, UI Icons dev, UI Patterns dev.

  • 🇫🇷France mogtofu33

    I think it's probably a duplicate of Menu: support non content menu links Active , will wait a bit before closing when I'll look at it.

  • 🇫🇷France Grimreaper France 🇫🇷

    On the screenshots, it seems that it is content menu link.

  • 🇫🇷France G4MBINI Bègles

    Indeed, yes it is a content content menu link. Thanks @grimreaper

  • 🇫🇷France steveoriol Grenoble 🇫🇷

    I have another error that probably has nothing to do with “ui_icons” but looks similar (with the “Array” in the railroad...)

    But here I have a “Warning”, if that helps:

    Warning: Array to string conversion in Drupal\ui_patterns\Plugin\UiPatterns\PropType\LinksPropType::normalizeLink() (line 127 of modules/contrib/ui_patterns/src/Plugin/UiPatterns/PropType/LinksPropType.php).

    Normally, it has the account name instead of “Array”.
    Just install commerce 2 to get the “address-book” (Carnet d'adresses) tab : /user/1/address-book

Production build 0.71.5 2024