]> source.dussan.org Git - nextcloud-server.git/commitdiff
Restores keyboard accessibility for expandable settings area.
authorHenning Oschwald <h.oschwald@gmx.de>
Fri, 15 Mar 2013 11:03:11 +0000 (12:03 +0100)
committerHenning Oschwald <h.oschwald@gmx.de>
Sat, 16 Mar 2013 15:32:55 +0000 (16:32 +0100)
Tabindex="0" makes the element focussable with the keyboard and
role="link" tells assistive technologies that this clickable span
element is supposed to be presented as a hyperlink.

core/templates/layout.user.php

index 982efb412b6e1ca61e920eb6ac66b6252fe7abfa..9af56b72c331a00c2b7066a788a59ee340d591d3 100644 (file)
@@ -38,7 +38,7 @@
                                src="<?php print_unescaped(image_path('', 'logo-wide.svg')); ?>" alt="ownCloud" /></a>
 
                        <ul id="settings" class="svg">
-                               <span id="expand">
+                               <span id="expand" tabindex="0" role="link">
                                        <span id="expandDisplayName"><?php  p(trim($_['user_displayname']) != '' ? $_['user_displayname'] : $_['user_uid']) ?></span>
                                        <img class="svg" src="<?php print_unescaped(image_path('', 'actions/caret.svg')); ?>" />
                                </span>