From ba8bb6eee3243d1ab1e24e6956a119554ec0ce17 Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Wed, 13 May 2020 14:20:34 -0400 Subject: [PATCH] Common.js Icons should be aria-hidden --- js/Common.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/Common.js b/js/Common.js index d2c29a78b0..0ed3e38c67 100644 --- a/js/Common.js +++ b/js/Common.js @@ -387,7 +387,7 @@ if (!CRM.vars) CRM.vars = {}; description = row.description || $(row.element).data('description'), ret = ''; if (icon) { - ret += ' '; + ret += ' '; } if (color) { ret += ' '; @@ -421,7 +421,7 @@ if (!CRM.vars) CRM.vars = {}; title = ' title="' + text + '"'; sr = '' + text + ''; } - return '' + sr; + return '' + sr; }; /** @@ -463,7 +463,7 @@ if (!CRM.vars) CRM.vars = {}; placeholder = settings.placeholder || $el.data('placeholder') || $el.attr('placeholder') || $('option[value=""]', $el).text(); if (m.length && placeholder === m) { iconClass = $el.attr('class').match(/(fa-\S*)/)[1]; - out = ' ' + out; + out = ' ' + out; } return out; }; @@ -733,7 +733,7 @@ if (!CRM.vars) CRM.vars = {}; } _.each(createLinks, function(link) { markup += ' ' + - ' ' + + ' ' + _.escape(link.label) + ''; }); markup += ''; -- 2.25.1