You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added [an official method](https://github.com/FortAwesome/angular-fontawesome/blob/master/docs/usage/features.md#programmatic-api) to update `FaIconComponent` and `FaDuotoneIconComponent` programmatically.
28
+
* Added `FaIconLibray` class to replace deprecated global icon library from `@fortawesome/fontawesome-svg-core` package.
29
+
* Added `a11yRole` input for `fa-icon` and `fa-duotone-icon` components to support customizing `role` attribute of the rendered SVG icon.
30
+
* Added `FaConfig` class to globally configure `angular-fontawesome`.
31
+
* Added a table in README.md to document compatibility with major Angular versions.
32
+
* Added instructions on how to install library with NPM.
33
+
34
+
### Changed
35
+
36
+
* Restructured documentation to make it easier to navigate and extend.
37
+
* 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`.
38
+
39
+
### Deprecated
40
+
41
+
* `FaIconComponent.iconProp` is deprecated. Use `FaIconComponent.icon` instead.
42
+
* 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.
43
+
* `FaIconComponent.listItem` is deprecated. Use `FaIconComponent.fixedWidth` + custom CSS to render icons as list markers.
44
+
* `FaIconService` is deprecated in favour of `FaConfig`.
45
+
46
+
### Fixed
47
+
48
+
* Fixed title-tooltip not being displayed in IE 11 in some cases.
Copy file name to clipboardExpand all lines: docs/upgrading/0.4.0-0.5.0.md
+21
Original file line number
Diff line number
Diff line change
@@ -31,3 +31,24 @@ export class AppModule {
31
31
```
32
32
33
33
You can also use `FaConfig.globalLibrary` property to change the warning into the hard error or suppress warnings altogether (not recommended).
34
+
35
+
## Changed semantics of FaIconComponent.icon property
36
+
37
+
`FaIconComponent.icon` property used to have type `Icon` (rendered icon object), which was changed to `IconProp` as it is now an input property to specify the icon definition. No replacement is provided.
38
+
39
+
If you were working with `FaIconComponent` programmatically you should switch from setting `FaIconComponent.iconProp` to `FaIconComponent.icon` as former is deprecated.
40
+
41
+
## FaIconComponent.listItem is deprecated
42
+
43
+
The input was not working and we don't want to support this pattern in angular-fontawesome.
44
+
45
+
You can use `fixedWidth=true` and custom CSS to achieve similar behavior:
0 commit comments