Merge pull request #1512 from nextcloud/share-alttext

Display "Share" alt text for share action icon (#26158)
This commit is contained in:
Morris Jobke 2016-09-28 20:44:15 +02:00 committed by GitHub
commit f4eee1d3a5
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';