diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-18 01:21:01 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-12-18 01:21:01 +0100 |
commit | 82f8726903c69b3a91f1c769d469197353ce1945 (patch) | |
tree | 7d96fa96fdc68209f508984aee692673f265efa8 /core | |
parent | a581dcaadb90c6200baf42177fd14f2560fda533 (diff) | |
parent | 0c764bc39fb7637c48feb8b50bba47cb0f48d9ca (diff) | |
download | nextcloud-server-82f8726903c69b3a91f1c769d469197353ce1945.tar.gz nextcloud-server-82f8726903c69b3a91f1c769d469197353ce1945.zip |
Merge pull request #12900 from owncloud/more-accessibility
More accessibility fixes for Files
Diffstat (limited to 'core')
-rw-r--r-- | core/css/styles.css | 13 | ||||
-rw-r--r-- | core/templates/layout.user.php | 6 |
2 files changed, 17 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css index 0d97cc11482..12408c2d76c 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -725,7 +725,18 @@ label.infield { /* VARIOUS REUSABLE SELECTORS */ -.hidden { display:none; } +.hidden { + display: none; +} +.hidden-visually { + position: absolute; + left:-10000px; + top: auto; + width: 1px; + height: 1px; + overflow: hidden; +} + .bold { font-weight:bold; } .center { text-align:center; } .inlineblock { display: inline-block; } diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index d8129ecfc67..2d601b22933 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -61,7 +61,8 @@ <?php if ($_['enableAvatars']): ?> <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown"'); } else { print_unescaped('" style="display: none"'); } ?>> <?php if ($_['userAvatarSet']): ?> - <img src="<?php p(link_to('', 'index.php').'/avatar/'.$_['user_uid'].'/32?requesttoken='.$_['requesttoken']); ?>"> + <img src="<?php p(link_to('', 'index.php').'/avatar/'.$_['user_uid'].'/32?requesttoken='.$_['requesttoken']); ?>" + alt="" /> <?php endif; ?> </div> <?php endif; ?> @@ -90,6 +91,9 @@ </div> <form class="searchbox" action="#" method="post"> + <label for="query" class="visually-hidden"> + <?php p($l->t('Search'));?> + </label> <input id="searchbox" class="svg" type="search" name="query" value="<?php if(isset($_POST['query'])) {p($_POST['query']);};?>" autocomplete="off" tabindex="2" /> |