Skip to content

Commit

Permalink
Merge pull request #26521 from nextcloud/design/login-accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Apr 13, 2021
2 parents 421914b + bdd5667 commit 23b8e4a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
14 changes: 11 additions & 3 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 Expand Up @@ -334,7 +340,9 @@ button.primary:not(:disabled):hover,
button.primary:not(:disabled):focus,
a.primary:not(:disabled):hover,
a.primary:not(:disabled):focus {
color: rgba(255, 255, 255, .8);
color: rgba(255, 255, 255, 1);
background-image: linear-gradient(40deg, #0082c9 0%, #30b6ff 100%);
background-position: initial;
}

/* Checkboxes - white only for login */
Expand Down
4 changes: 2 additions & 2 deletions core/js/dist/login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/login.js.map

Large diffs are not rendered by default.

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
6 changes: 4 additions & 2 deletions core/src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
{{ t('core', 'Forgot password?') }}
</a>
<br>
<a v-if="hasPasswordless" @click.prevent="passwordlessLogin = true">
<a v-if="hasPasswordless"
href="#"
@click.prevent="passwordlessLogin = true">
{{ t('core', 'Log in with a device') }}
</a>
</div>
Expand All @@ -61,7 +63,7 @@
:is-https="isHttps"
:has-public-key-credential="hasPublicKeyCredential"
@submit="loading = true" />
<a @click.prevent="passwordlessLogin = false">
<a @click.prevent="passwordlessLogin = false" href="#">
{{ t('core', 'Back') }}
</a>
</div>
Expand Down

0 comments on commit 23b8e4a

Please sign in to comment.