diff --git a/libs/components/src/button/button.component.html b/libs/components/src/button/button.component.html
index 93519e7fb64..c7084a8b6ec 100644
--- a/libs/components/src/button/button.component.html
+++ b/libs/components/src/button/button.component.html
@@ -2,17 +2,29 @@
@let leadIcon = startIcon();
@let tailIcon = endIcon();
+
+
+
+
-
- @if (leadIcon) {
-
- }
-
- @if (tailIcon) {
-
- }
-
+ @if (leadIcon || tailIcon) {
+
+ @if (leadIcon) {
+
+ }
+
+
+
+ @if (tailIcon) {
+
+ }
+
+ } @else {
+
+
+
+ }
@if (showLoadingStyles) {
diff --git a/libs/components/src/button/button.component.ts b/libs/components/src/button/button.component.ts
index f51925740e0..1055d134e53 100644
--- a/libs/components/src/button/button.component.ts
+++ b/libs/components/src/button/button.component.ts
@@ -1,4 +1,4 @@
-import { NgClass } from "@angular/common";
+import { NgClass, NgTemplateOutlet } from "@angular/common";
import {
input,
HostBinding,
@@ -72,7 +72,7 @@ const buttonStyles: Record = {
selector: "button[bitButton], a[bitButton]",
templateUrl: "button.component.html",
providers: [{ provide: ButtonLikeAbstraction, useExisting: ButtonComponent }],
- imports: [NgClass, SpinnerComponent],
+ imports: [NgClass, NgTemplateOutlet, SpinnerComponent],
hostDirectives: [AriaDisableDirective],
})
export class ButtonComponent implements ButtonLikeAbstraction {