0.5.0
Make sure to check upgrade instructions.
Added
-
Added
fa-stack
component to stack two icons together:<fa-stack> <fa-icon [icon]="faCircle" stackItemSize="2x"></fa-icon> <fa-icon [icon]="faFlag" [inverse]="true" stackItemSize="1x"></fa-icon> </fa-stack>
-
Added
fa-duotone-icon
component to work with duotone icons:<fa-duotone-icon [icon]="['fad', 'coffee']" primaryColor="red" secondaryColor="blue"></fa-duotone-icon>
-
Added an official method to update
FaIconComponent
andFaDuotoneIconComponent
programmatically. -
Added
FaIconLibrary
class to replace deprecated global icon library from@fortawesome/fontawesome-svg-core
package. -
Added
a11yRole
input forfa-icon
andfa-duotone-icon
components to support customizingrole
attribute of the rendered SVG icon. -
Added
FaConfig
class to globally configureangular-fontawesome
. -
Added a table in README.md to document compatibility with major Angular versions.
-
Added instructions on how to install library with NPM.
Changed
- Restructured documentation to make it easier to navigate and extend.
- Changed semantics of the
FaIconComponent.icon
property. It used to have typeIcon
- rendered icon object and is now changed into component input to specify icon definition with typeIconProp
.
Deprecated
FaIconComponent.iconProp
is deprecated. UseFaIconComponent.icon
instead.- Warning when
FaIconComponent.icon
is not set or specified icon definition is missing in the icon library is deprecated. It will throw a hard error in the next version. FaIconComponent.listItem
is deprecated. UseFaIconComponent.fixedWidth
+ custom CSS to render icons as list markers.FaIconService
is deprecated in favour ofFaConfig
.
Fixed
- Fixed title-tooltip not being displayed in IE 11 in some cases.