summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-28 20:44:15 +0200
committerGitHub <noreply@github.com>2016-09-28 20:44:15 +0200
commitf4eee1d3a543bdd1c424a96bdd58fd2101ebe578 (patch)
tree6313c14e15d282a799cbba342dfa2909b6752066
parent19f94ac5f9d08b958602ab07848a5c22d183b027 (diff)
parentf07d146644e1e9321fd47adc80afddf5ff4ef4f4 (diff)
downloadnextcloud-server-f4eee1d3a543bdd1c424a96bdd58fd2101ebe578.tar.gz
nextcloud-server-f4eee1d3a543bdd1c424a96bdd58fd2101ebe578.zip
Merge pull request #1512 from nextcloud/share-alttext
Display "Share" alt text for share action icon (#26158)
-rw-r--r--apps/files_sharing/js/share.js1
-rw-r--r--core/js/share.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 07ec5f766a1..5dd75c94fdb 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -141,6 +141,7 @@
fileActions.registerAction({
name: 'Share',
displayName: '',
+ altText: t('core', 'Share'),
mime: 'all',
permissions: OC.PERMISSION_ALL,
iconClass: 'icon-share',
diff --git a/core/js/share.js b/core/js/share.js
index cd399dd3cee..913c78bb732 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -306,7 +306,7 @@ OC.Share = _.extend(OC.Share || {}, {
}
}
else {
- action.html('<span></span>').prepend(icon);
+ action.html('<span class="hidden-visually">' + t('core', 'Shared') + '</span>').prepend(icon);
}
if (hasLink) {
iconClass = 'icon-public';