Fixed a11y; span instead of a div

Signed-off-by: Marin Treselj <marin@pixelipo.com>
pull/6094/head
Marin Treselj 8 years ago committed by Roeland Jago Douma
parent 9998700e7c
commit 2ff2d4f104
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      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];

Loading…
Cancel
Save