diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-09-29 20:01:15 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-09-29 20:01:15 +0200 |
commit | 2cd467f3f0b018c2dd6d17b5266c8ebff1330c5d (patch) | |
tree | 4b925718a72999564dc52950ad0aac390a696d77 /core/templates | |
parent | 21e484533c371d46d37e6e05fedaec70b13a40c3 (diff) | |
download | nextcloud-server-2cd467f3f0b018c2dd6d17b5266c8ebff1330c5d.tar.gz nextcloud-server-2cd467f3f0b018c2dd6d17b5266c8ebff1330c5d.zip |
Remove unneeded tabindex, add keyboard focus feedback for app list
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/layout.user.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index 68c167d7326..5008392d2a3 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -33,7 +33,7 @@ <header role="banner"><div id="header"> <div class="header-left"> <a href="<?php print_unescaped(link_to('', 'index.php')); ?>" - id="nextcloud" tabindex="1"> + id="nextcloud"> <div class="logo logo-icon"> <h1 class="hidden-visually"> <?php p($theme->getName()); ?> <?php p(!empty($_['application'])?$_['application']: $l->t('Apps')); ?> @@ -45,7 +45,6 @@ <?php foreach ($_['navigation'] as $entry): ?> <li data-id="<?php p($entry['id']); ?>" class="hidden"> <a href="<?php print_unescaped($entry['href']); ?>" - tabindex="3" <?php if ($entry['active']): ?> class="active"<?php endif; ?>> <img src="<?php print_unescaped($entry['icon'] . '?v=' . $_['versionHash']); ?>" class="app-icon" alt="<?php p($entry['name']); ?>" /> @@ -71,7 +70,7 @@ <ul> <?php foreach($_['navigation'] as $entry): ?> <li data-id="<?php p($entry['id']); ?>"> - <a href="<?php print_unescaped($entry['href']); ?>" tabindex="3" + <a href="<?php print_unescaped($entry['href']); ?>" <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>> <svg width="16" height="16" viewBox="0 0 16 16"> <defs><filter id="invert-<?php p($entry['id']); ?>"><feColorMatrix in="SourceGraphic" type="matrix" values="-1 0 0 0 1 0 -1 0 0 1 0 0 -1 0 1 0 0 0 1 0"></feColorMatrix></filter></defs> @@ -96,15 +95,15 @@ </label> <input id="searchbox" type="search" name="query" value="" required - autocomplete="off" tabindex="5"> + autocomplete="off"> <button class="icon-close-white" type="reset"><span class="hidden-visually"><?php p($l->t('Reset search'));?></span></button> </form> <div id="contactsmenu"> - <div class="icon-contacts menutoggle"></div> + <div class="icon-contacts menutoggle" tabindex="0" role="link"></div> <div class="menu"></div> </div> <div id="settings"> - <div id="expand" tabindex="6" role="link" class="menutoggle"> + <div id="expand" tabindex="0" role="link" class="menutoggle"> <div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>"> <?php if ($_['userAvatarSet']): ?> <img alt="" width="32" height="32" |