Skip to content

0.5.0

Compare
Choose a tag to compare
@devoto13 devoto13 released this 11 Aug 23:12

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 and FaDuotoneIconComponent programmatically.

  • Added FaIconLibrary class to replace deprecated global icon library from @fortawesome/fontawesome-svg-core package.

  • Added a11yRole input for fa-icon and fa-duotone-icon components to support customizing role attribute of the rendered SVG icon.

  • Added FaConfig class to globally configure angular-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 type Icon - rendered icon object and is now changed into component input to specify icon definition with type IconProp.

Deprecated

  • FaIconComponent.iconProp is deprecated. Use FaIconComponent.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. Use FaIconComponent.fixedWidth + custom CSS to render icons as list markers.
  • FaIconService is deprecated in favour of FaConfig.

Fixed

  • Fixed title-tooltip not being displayed in IE 11 in some cases.