fa-duotone-icon should assume the 'fad' prefix by default
See original GitHub issueDescribe the problem
When using the duotone element, the default prefix is read by the global options when not explicitly provided.
What did you expect?
Unless specifically overridden it should infer that the icon set used for this element is “fad”. Maybe a global config to change this behaviour too, that way you can change this without it being a breaking change for users
Reproducible test case
Basic setup of angular and FA, no special extras needed
<fa-duotone-icon icon="user"></fa-duotone-icon> <!-- By default this should be using the "fad-user" icon -->
<fa-duotone-icon [icon]="['fad', 'user']"></fa-duotone-icon> <!-- Instead it has to be written like this currently, which just feels redundant -->
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Duotone Icons | Font Awesome Docs
Duotone icons use the same syntax Font Awesome icons and can be referenced like any other icon using their specific style prefix (...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
duotone icons support more options than regular icons -
swapOpacity
,primaryOpacity
,secondaryOpacity
, etc that don’t make sense to exist on the regular icon componentI wonder why do I need the
fa-duotone-icon
component anyway. What is the difference between<fa-duotone-icon [icon]="['fad', 'user']"></fa-duotone-icon>
and<fa-icon [icon]="['fad', 'user']"></fa-icon>
?