Project

General

Profile

Actions

Feature #44833

closed

Support 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

Added by Marius BĂLTEANU about 2 hours ago. Updated about 2 hours ago.

Status:
Closed
Priority:
Normal
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:

- name: project
  alias: projects
Actions

Also available in: PDF Atom