Skip to content

Commit

Permalink
fix(button): change loading button conents from div to span
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed Jan 31, 2024
1 parent eac8a0d commit 5b710b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/angular/src/button/button-loading/loading-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const MIN_BUTTON_WIDTH = 42;
@Component({
selector: 'button[clrLoading]',
template: `
<div @parent [ngSwitch]="state">
<span @parent [ngSwitch]="state">
<span *ngSwitchCase="buttonState.LOADING">
<span @spinner class="spinner spinner-inline"></span>
</span>
Expand All @@ -30,7 +30,7 @@ const MIN_BUTTON_WIDTH = 42;
<span *ngSwitchCase="buttonState.DEFAULT" @defaultButton>
<ng-content></ng-content>
</span>
</div>
</span>
`,
providers: [{ provide: LoadingListener, useExisting: ClrLoadingButton }],
animations: [
Expand Down

0 comments on commit 5b710b8

Please sign in to comment.