Display "Share" alt text for share action icon (#26158)

Downstreaming of https://github.com/owncloud/core/pull/26158

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Vincent Petry 2016-09-20 15:49:21 +02:00 committed by Lukas Reschke
parent 9e91a76b30
commit f07d146644
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 2 additions and 1 deletions

View File

@ -141,6 +141,7 @@
fileActions.registerAction({
name: 'Share',
displayName: '',
altText: t('core', 'Share'),
mime: 'all',
permissions: OC.PERMISSION_ALL,
iconClass: 'icon-share',

View File

@ -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';