Active
Project:
Drupal core
Version:
main
Component:
navigation.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
17 Feb 2025 at 04:45 UTC
Updated:
7 Mar 2025 at 16:26 UTC
Jump to comment: Most recent
Once #3483209: Navigation leverage icon core API provides a new icon set for Navigation, the approach used by NavigationLinkBlock to define icon might need to be reviewed to make use of the new Icon API instead of the current magic class pattern.
TBD
Comments
Comment #2
m4oliveiThis issue is still valid. We continue relying on the magic class pattern approach here. In my mind, ideally, we would allow the user to configure a
icon_pack_idandicon_idpair for the block plugin that would get used in rendering it. That's an awkward UX experience, given core doesn't have any icon widgets, but, it could be left to contrib to make it better, and/or if/when core adopts a widget for icons.