summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarin Treselj <marin@pixelipo.com>2017-09-18 15:40:03 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-10-31 11:35:21 +0100
commit2ff2d4f10470e6e2d75f1f3fd1c077edab6ea731 (patch)
tree7163e6c366e72123e00e56cb41f3e122f86bbf41 /core
parent9998700e7c9e8bccc901e21214a863f1aea86344 (diff)
downloadnextcloud-server-2ff2d4f10470e6e2d75f1f3fd1c077edab6ea731.tar.gz
nextcloud-server-2ff2d4f10470e6e2d75f1f3fd1c077edab6ea731.zip
Fixed a11y; span instead of a div
Signed-off-by: Marin Treselj <marin@pixelipo.com>
Diffstat (limited to 'core')
-rw-r--r--core/js/share.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index c8eaa08878e..fd21a25a2d8 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -207,7 +207,7 @@ OC.Share = _.extend(OC.Share || {}, {
var parts = this._REMOTE_OWNER_REGEXP.exec(remoteAddress);
if (!parts) {
// display as is, most likely to be a simple owner name
- return '<div class="avatar" data-userName="' + escapeHTML(remoteAddress) + '" title="' + t('core', 'Shared by') + ' ' + escapeHTML(remoteAddress) + '"></div>';
+ return '<span class="avatar icon" data-userName="' + escapeHTML(remoteAddress) + '" title="' + t('core', 'Shared by') + ' ' + escapeHTML(remoteAddress) + '"></span><span class="hidden-visually">' + t('core', 'Shared by {recipient}', {recipient: escapeHTML(remoteAddress)}) + '</span>';
}
var userName = parts[1];