Browse Source

Fix form labels and main landmark on log in page

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
tags/v14.0.0beta1
Jan-Christoph Borchardt 6 years ago
parent
commit
0f9ba852bc
No account linked to committer's email address
2 changed files with 5 additions and 1 deletions
  1. 3
    1
      core/templates/layout.guest.php
  2. 2
    0
      core/templates/login.php

+ 3
- 1
core/templates/layout.guest.php View File

@@ -37,7 +37,9 @@
</div>
</header>
<?php endif; ?>
<?php print_unescaped($_['content']); ?>
<main>
<?php print_unescaped($_['content']); ?>
</main>
</div>
</div>
<footer role="contentinfo">

+ 2
- 0
core/templates/login.php View File

@@ -37,6 +37,7 @@ script('core', 'merged-login');
<p class="grouptop<?php if (!empty($_['invalidpassword'])) { ?> shake<?php } ?>">
<input type="text" name="user" id="user"
placeholder="<?php p($l->t('Username or email')); ?>"
aria-label="<?php p($l->t('Username or email')); ?>"
value="<?php p($_['loginName']); ?>"
<?php p($_['user_autofocus'] ? 'autofocus' : ''); ?>
autocomplete="on" autocapitalize="none" autocorrect="off" required>
@@ -46,6 +47,7 @@ script('core', 'merged-login');
<p class="groupbottom<?php if (!empty($_['invalidpassword'])) { ?> shake<?php } ?>">
<input type="password" name="password" id="password" value=""
placeholder="<?php p($l->t('Password')); ?>"
aria-label="<?php p($l->t('Password')); ?>"
<?php p($_['user_autofocus'] ? '' : 'autofocus'); ?>
autocomplete="on" autocapitalize="off" autocorrect="none" required>
<label for="password" class="infield"><?php p($l->t('Password')); ?></label>

Loading…
Cancel
Save