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 /apps/files/js | |
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 'apps/files/js')
-rw-r--r-- | apps/files/js/breadcrumb.js | 2 | ||||
-rw-r--r-- | apps/files/js/fileactions.js | 4 | ||||
-rw-r--r-- | apps/files/js/filelist.js | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js index af4e48c8f8c..5cea2639c7d 100644 --- a/apps/files/js/breadcrumb.js +++ b/apps/files/js/breadcrumb.js @@ -106,6 +106,7 @@ if (part.img) { $image = $('<img class="svg"></img>'); $image.attr('src', part.img); + $image.attr('alt', part.alt); $link.append($image); } this.breadcrumbs.push($crumb); @@ -151,6 +152,7 @@ crumbs.push({ dir: '/', name: '', + alt: t('files', 'Home'), img: OC.imagePath('core', 'places/home.svg') }); for (var i = 0; i < parts.length; i++) { diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index da48cf29be0..875857745b8 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -289,7 +289,9 @@ } var $actionLink = $('<a href="#" original-title="' + escapeHTML(deleteTitle) + - '" class="action delete icon-delete" />' + '" class="action delete icon-delete">' + + '<span class="hidden-visually">' + escapeHTML(deleteTitle) + '</span>' + + '</a>' ); var $container = context.$file.find('td:last'); $container.find('.delete').remove(); diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 62892f1b918..09cb3d3287d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -710,6 +710,7 @@ '<input id="select-' + this.id + '-' + fileData.id + '" type="checkbox" class="selectCheckBox"/><label for="select-' + this.id + '-' + fileData.id + '">' + '<div class="thumbnail" style="background-image:url(' + icon + '); background-size: 32px;"></div>' + + '<span class="hidden-visually">' + t('files', 'Select') + '</span>' + '</label>' ); } else { |