Skip to content

Commit

Permalink
[EC-556] feat: remove loading from submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
coroiu committed Sep 15, 2022
1 parent b14b7d9 commit de182ce
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions libs/components/src/submit-button/submit-button.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
<button bitButton type="submit" [buttonType]="buttonType" [disabled]="loading || disabled">
<span class="tw-relative">
<span [ngClass]="{ 'tw-invisible': loading }">
<ng-content></ng-content>
</span>
<span class="tw-absolute tw-inset-0" [ngClass]="{ 'tw-invisible': !loading }">
<i class="bwi bwi-spinner bwi-lg bwi-spin tw-align-baseline" aria-hidden="true"></i>
</span>
</span>
<button bitButton type="submit" [buttonType]="buttonType" [disabled]="disabled" [loading]="loading">
<ng-content></ng-content>
</button>

0 comments on commit de182ce

Please sign in to comment.