Skip to content

Commit

Permalink
Document how to correctly use fa-stack in standalone components
Browse files Browse the repository at this point in the history
Angular is unable to detect missing directives (angular/angular#20588) and it looks like there is no way to import the directive automatically whenever `FaStackComponent` is imported.

Closes #433
  • Loading branch information
devoto13 committed Apr 14, 2024
1 parent 56328c9 commit 0fe2f8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/usage/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Each `<fa-icon>` declared inside an `<fa-stack>` element **must** include the `s
</fa-stack>
```

When using standalone components, make sure to also add `FaStackItemSizeDirective` to the imports alongside with the `FaStackComponent`. Without the directive, the stacked icon will not render correctly.

### Layers
[FontAwesome Spec](https://fontawesome.com/how-to-use/on-the-web/styling/layering):

Expand Down

0 comments on commit 0fe2f8b

Please sign in to comment.