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 a8b20c2 commit 8df8e8a
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 8df8e8a

Please sign in to comment.