Closed (fixed)
Project:
Prototype
Version:
5.2.2
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Oct 2025 at 16:47 UTC
Updated:
17 Feb 2026 at 00:57 UTC
Jump to comment: Most recent
On most projects we have a pattern where links have associated icons before and after text labels, or that the icons replace the text labels. We should use a standard component for this that we pass things into. Typically I'll do this and then make sure all menus use this same pattern so markup is standardized.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jnettikThis creates the new component. It has two custom properties that will allow components that leverage it to change the alignment of the text/icon pairs as well as adjust the spacing between them. It also assumes the icon is a raw SVG file and sets the color of it the same as the text so it inherits a parent's
colorstyle.Comment #4
jldust commentedNotes from 21st - Move into 02-components folder, review/remove existing icon from elements
Comment #6
jldust commentedThese changes have been merged in and will be included in the next tagged release.
Comment #7
jldust commentedThis has been included in the most recent release
Comment #9
jldust commented