1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-09 19:28:06 +01:00

[PM-2014] feat: autofocus fields

This commit is contained in:
Andreas Coroiu 2023-05-16 14:16:57 +02:00
parent e7c0c7e2fe
commit 38adb9ee0a
No known key found for this signature in database
GPG Key ID: E70B5FFC81DFEC1A

View File

@ -11,7 +11,7 @@
</p> </p>
<bit-form-field disableMargin formGroupName="userVerification"> <bit-form-field disableMargin formGroupName="userVerification">
<bit-label>{{ "masterPassword" | i18n }}</bit-label> <bit-label>{{ "masterPassword" | i18n }}</bit-label>
<input type="password" bitInput formControlName="masterPassword" /> <input type="password" bitInput formControlName="masterPassword" appAutofocus />
<button type="button" bitIconButton bitSuffix bitPasswordInputToggle></button> <button type="button" bitIconButton bitSuffix bitPasswordInputToggle></button>
<bit-hint>{{ "confirmIdentity" | i18n }}</bit-hint> <bit-hint>{{ "confirmIdentity" | i18n }}</bit-hint>
</bit-form-field> </bit-form-field>
@ -39,7 +39,7 @@
</p> </p>
<bit-form-field disableMargin formGroupName="credentialNaming"> <bit-form-field disableMargin formGroupName="credentialNaming">
<bit-label>{{ "customName" | i18n }}</bit-label> <bit-label>{{ "customName" | i18n }}</bit-label>
<input type="text" bitInput formControlName="name" /> <input type="text" bitInput formControlName="name" appAutofocus />
<bit-hint>{{ <bit-hint>{{
"charactersCurrentAndMaximum" "charactersCurrentAndMaximum"
| i18n : formGroup.value.credentialNaming.name.length : NameMaxCharacters | i18n : formGroup.value.credentialNaming.name.length : NameMaxCharacters