Try adding an ALT tag for avatars
This commit is contained in:
parent
4be8de21a1
commit
f2bed10087
|
@ -82,7 +82,7 @@ Discourse.Utilities = {
|
||||||
var classes = "avatar" + (options.extraClasses ? " " + options.extraClasses : "");
|
var classes = "avatar" + (options.extraClasses ? " " + options.extraClasses : "");
|
||||||
var title = (options.title) ? " title='" + Handlebars.Utils.escapeExpression(options.title || "") + "'" : "";
|
var title = (options.title) ? " title='" + Handlebars.Utils.escapeExpression(options.title || "") + "'" : "";
|
||||||
|
|
||||||
return "<img alt='' width='" + size + "' height='" + size + "' src='" + Discourse.getURLWithCDN(url) + "' class='" + classes + "'" + title + ">";
|
return "<img alt='" + (title || "avatar") + "' width='" + size + "' height='" + size + "' src='" + Discourse.getURLWithCDN(url) + "' class='" + classes + "'" + title + ">";
|
||||||
},
|
},
|
||||||
|
|
||||||
tinyAvatar: function(avatarTemplate, options) {
|
tinyAvatar: function(avatarTemplate, options) {
|
||||||
|
|
Loading…
Reference in New Issue