Actions
Feature #44833
closedSupport icon aliases in config/icon_source.yml to avoid duplicate SVG symbols
Feature #44833:
Support icon aliases in config/icon_source.yml to avoid duplicate SVG symbols
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Resolution:
Fixed
Description
Currently, when multiple semantic icon names in config/icon_source.yml share the same underlying Tabler SVG (for example projects/project, comments/comment/message, text-x-c/text-x-java/text-x-ruby, or upcoming semantic icon names such as wiki toolbar icons), bin/rails icons:generate downloads the same SVG multiple times and writes duplicate <symbol> definitions into app/assets/images/icons.svg.
Add support for an alias key in config/icon_source.yml so an icon name can reference an existing icon in the default sprite without duplicating its SVG markup:
Actions