Skip to content

Commit

Permalink
Wrap login component email and MP entry states with invisible divs (#…
Browse files Browse the repository at this point in the history
…11884)

- Allows autofill to fill both email and password
  • Loading branch information
alec-livefront authored Nov 6, 2024
1 parent 2c5221d commit 1afb2f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/auth/src/angular/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-->

<form [bitSubmit]="submit" [formGroup]="formGroup">
<ng-container *ngIf="loginUiState === LoginUiState.EMAIL_ENTRY">
<div [ngClass]="{ 'tw-invisible tw-h-0': loginUiState !== LoginUiState.EMAIL_ENTRY }">
<!-- Email Address input -->
<bit-form-field>
<bit-label>{{ "emailAddress" | i18n }}</bit-label>
Expand Down Expand Up @@ -82,9 +82,9 @@
</button>
</ng-container>
</div>
</ng-container>
</div>

<ng-container *ngIf="loginUiState === LoginUiState.MASTER_PASSWORD_ENTRY">
<div [ngClass]="{ 'tw-invisible tw-h-0': loginUiState !== LoginUiState.MASTER_PASSWORD_ENTRY }">
<!-- Master Password input -->
<bit-form-field class="!tw-mb-1">
<bit-label>{{ "masterPass" | i18n }}</bit-label>
Expand Down Expand Up @@ -140,5 +140,5 @@
</button>
</ng-container>
</div>
</ng-container>
</div>
</form>

0 comments on commit 1afb2f7

Please sign in to comment.