Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix password visibility toggle alt text and hover/focus feedback
Signed-off-by: Jan C. Borchardt <[email protected]>
  • Loading branch information
jancborchardt committed Apr 12, 2021
commit dcf044a7a6cbf08fddd3744cb953c8c6cd34f0f5
10 changes: 8 additions & 2 deletions core/css/guest.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,14 @@ input[type='password'].password-with-toggle, input[type='text'].password-with-to
}
.toggle-password {
position: absolute;
top: 17px;
right: 20px;
top: 1px;
right: 5px;
padding: 14px;
height: 16px;
}
.toggle-password:hover,
.toggle-password:focus {
opacity: .6;
}
input.login {
width: 260px;
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<label for="password"
class="infield">{{ t('Password') }}</label>
<a href="#" class="toggle-password" @click.stop.prevent="togglePassword">
<img :src="toggleIcon">
<img :src="toggleIcon" :alt="t('core', 'Toggle password visibility')">
</a>
</p>

Expand Down