Skip to content

Commit

Permalink
Deprecated listItem input of the FaIconComponent
Browse files Browse the repository at this point in the history
The input was not working and we don't want to support this pattern in
angular-fontawesome.

You can use `fixedWidth=true` and custom CSS to achieve similar
behavior:

```css
ul {
  list-style-type: none;
  padding-left: 20px;
}
```

Demo: https://stackblitz.com/edit/angular-z8v4ux-o2yduf

Fixes #51
  • Loading branch information
devoto13 committed Aug 9, 2019
1 parent 0dde4ab commit f38f7a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/icon/icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export class FaIconComponent implements OnChanges {
@Input() border?: boolean;
@Input() inverse?: boolean;
@Input() symbol?: FaSymbol;

/**
* @deprecated Since 0.5.0. Will be removed in 0.6.0. Use `fixedWidth` with your custom styles instead.
*/
@Input() listItem?: boolean;
@Input() rotate?: RotateProp;
@Input() fixedWidth?: boolean;
Expand Down

0 comments on commit f38f7a6

Please sign in to comment.