From 87dc817a804cb0e69c7262e9fdf6aff9e8c3fb70 Mon Sep 17 00:00:00 2001 From: Yaroslav Admin Date: Sun, 14 Apr 2024 12:20:31 +0200 Subject: [PATCH] Document how to correctly use fa-stack in standalone components Angular is unable to detect missing directives (https://github.com/angular/angular/issues/20588) and it looks like there is no way to import the directive automatically whenever `FaStackComponent` is imported. Closes #433 --- docs/usage/features.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/usage/features.md b/docs/usage/features.md index 33a64a1..4b78a27 100644 --- a/docs/usage/features.md +++ b/docs/usage/features.md @@ -154,6 +154,8 @@ Each `` declared inside an `` element **must** include the `s ``` +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):