feat: improve login and register ux #1104

Merged
dpschen merged 23 commits from feature/login-improvements into main 2022-02-05 17:22:43 +00:00
3 changed files with 13 additions and 3 deletions
Showing only changes of commit fda0b81d9c - Show all commits

View File

@ -52,7 +52,9 @@
"logout": "Logout",
"emailInvalid": "Please enter a valid email address.",
konrad marked this conversation as resolved Outdated

Email is written inconsistent in English: sometimes it's "E-mail" sometimes "Email".
The more common one seems to be "Email" (more google results and wiki article's main spelling).

Email is written inconsistent in English: sometimes it's "E-mail" sometimes "Email". The more common one seems to be "Email" (more google results and wiki article's main spelling).

Changed it so that it's consistent everywhere.

Changed it so that it's consistent everywhere.
"usernameRequired": "Please provide a username.",
"passwordRequired": "Please provide a password."
"passwordRequired": "Please provide a password.",
"showPassword": "Show the password",
"hidePassword": "Hide the password"
},
"settings": {
"title": "Settings",

View File

@ -53,7 +53,11 @@
tabindex="2"
@focusout="validateField('password')"
/>
konrad marked this conversation as resolved Outdated

Add aria-label and tooltip

Add aria-label and tooltip

Done.

Done.
<a @click="togglePasswordFieldType" class="password-field-type-toggle">
<a
@click="togglePasswordFieldType"
class="password-field-type-toggle"
aria-label="passwordFieldType === 'password' ? $t('user.auth.showPassword') : $t('user.auth.hidePassword')"
v-tooltip="passwordFieldType === 'password' ? $t('user.auth.showPassword') : $t('user.auth.hidePassword')">
<icon :icon="passwordFieldType === 'password' ? 'eye' : 'eye-slash'"/>
</a>
</div>

View File

@ -59,7 +59,11 @@
@keyup.enter="submit"
@focusout="validatePassword"
/>
<a @click="togglePasswordFieldType" class="password-field-type-toggle">
<a
@click="togglePasswordFieldType"
class="password-field-type-toggle"
aria-label="passwordFieldType === 'password' ? $t('user.auth.showPassword') : $t('user.auth.hidePassword')"
v-tooltip="passwordFieldType === 'password' ? $t('user.auth.showPassword') : $t('user.auth.hidePassword')">
<icon :icon="passwordFieldType === 'password' ? 'eye' : 'eye-slash'"/>
</a>
</div>