Skip to content

Commit 0fe2f8b

Browse files
committed
Document how to correctly use fa-stack in standalone components
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
1 parent 56328c9 commit 0fe2f8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/usage/features.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ Each `<fa-icon>` declared inside an `<fa-stack>` element **must** include the `s
154154
</fa-stack>
155155
```
156156

157+
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.
158+
157159
### Layers
158160
[FontAwesome Spec](https://fontawesome.com/how-to-use/on-the-web/styling/layering):
159161

0 commit comments

Comments
 (0)