-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EC-556] feat: remove loading from submit button
- Loading branch information
Showing
1 changed file
with
2 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 2 additions & 9 deletions
11
libs/components/src/submit-button/submit-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |