Skip to content

[Icons] Add support for suffixes#3324

Open
seb-jean wants to merge 1 commit intosymfony:2.xfrom
seb-jean:uxicons-suffixes
Open

[Icons] Add support for suffixes#3324
seb-jean wants to merge 1 commit intosymfony:2.xfrom
seb-jean:uxicons-suffixes

Conversation

@seb-jean
Copy link
Contributor

@seb-jean seb-jean commented Jan 31, 2026

Q A
Bug fix? no
New feature? yes
Deprecations? no
Documentation? no
Issues Fix #3312
License MIT

This feature allows configuring icon attributes based on icon name suffixes. This is particularly useful for icon sets like Heroicons that use suffixes to distinguish icon variants (e.g., arrow-right-solid, arrow-right-20-solid, etc).

Example configuration:

ux_icons:
    icon_sets:
        heroicons:
            icon_attributes:
                data-slot: 'icon'
            suffixes:
                16-solid:
                    icon_attributes:
                        fill: 'currentColor'
                20-solid:
                    icon_attributes:
                        fill: 'currentColor'
                solid:
                    icon_attributes:
                        fill: 'currentColor'
                '':
                    icon_attributes:
                        stroke: 'currentColor'
                        stroke-width: 1.5
                        fill: 'none'

Suffixes are automatically sorted by length (longest first) to ensure more specific suffixes like 20-solid match before solid.

@carsonbot carsonbot added Feature New Feature Icons Status: Needs Review Needs to be reviewed labels Jan 31, 2026
@seb-jean seb-jean force-pushed the uxicons-suffixes branch 2 times, most recently from daa4513 to b3cb0a4 Compare January 31, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature Icons Status: Needs Review Needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Icons] Add support for suffixes

2 participants