Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2018-04-18 17:14:09 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-05-09 12:42:09 +0300
commit223f034068dcde41a7ee4fb875437d52cb37d1dc (patch)
tree9ec7f8945d82459eeb3baea3965930821dbe48b4 /core
parent575354a09c3ec6ba86a7bbda43928b3094c1554b (diff)
Fix form labels and main landmark on log in page
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core')
-rw-r--r--core/templates/layout.guest.php4
-rw-r--r--core/templates/login.php2
2 files changed, 5 insertions, 1 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 3abebc7a055..b68dab805f4 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -37,7 +37,9 @@
</div>
</header>
<?php endif; ?>
- <?php print_unescaped($_['content']); ?>
+ <main>
+ <?php print_unescaped($_['content']); ?>
+ </main>
</div>
</div>
<footer role="contentinfo">
diff --git a/core/templates/login.php b/core/templates/login.php
index de991e08d97..7e9b339eaa5 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -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>