Skip to content

[5.x]: Icon field includes icons from "brands" pack, but they are incompatible with standard icons #17402

@amphibian

Description

@amphibian

What happened?

Description

The icon field includes icons from FontAwesome's "brands" pack mixed in among the icons from the base pack. This issue is that to use a "brands" icon in your template, you need to specify "fa-brands" in the class name - using one of the other variants like "fa-solid," "fa-regular," etc will not work like it does with all of the other icons.

Since we don't know if an icon is a "brands" icon when displaying the field value, the two types cannot be used together without specifying both "fa-brands" plus your other preferred style in the markup for the field.

e.g. <i class="fa-brands fa-regular fa-{{ entry.iconField }}"></i>

The documentation should likely be updated to reflect this.

Craft CMS version

5.7.9

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions