1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Wrap login component email and MP entry states with invisible divs (#11884)

- Allows autofill to fill both email and password
This commit is contained in:
Alec Rippberger
2024-11-06 15:38:17 -06:00
committed by GitHub
parent 2c5221d3aa
commit 1afb2f7769

View File

@@ -11,7 +11,7 @@
--> -->
<form [bitSubmit]="submit" [formGroup]="formGroup"> <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 --> <!-- Email Address input -->
<bit-form-field> <bit-form-field>
<bit-label>{{ "emailAddress" | i18n }}</bit-label> <bit-label>{{ "emailAddress" | i18n }}</bit-label>
@@ -82,9 +82,9 @@
</button> </button>
</ng-container> </ng-container>
</div> </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 --> <!-- Master Password input -->
<bit-form-field class="!tw-mb-1"> <bit-form-field class="!tw-mb-1">
<bit-label>{{ "masterPass" | i18n }}</bit-label> <bit-label>{{ "masterPass" | i18n }}</bit-label>
@@ -140,5 +140,5 @@
</button> </button>
</ng-container> </ng-container>
</div> </div>
</ng-container> </div>
</form> </form>