From 8fe217bafe05ba0fa7f0b4d7278301011e3c6cbc Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 17 Jan 2025 15:42:15 +0100 Subject: [PATCH] fix(files): Add empty alt text to purely decorative icons Signed-off-by: Ferdinand Thiessen --- apps/files_sharing/js/templates.js | 4 ++-- apps/files_sharing/js/templates/files_drop.handlebars | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/js/templates.js b/apps/files_sharing/js/templates.js index 07fd6ad6c425a..b0fd74b8c02c3 100644 --- a/apps/files_sharing/js/templates.js +++ b/apps/files_sharing/js/templates.js @@ -21,8 +21,8 @@ templates['files_drop'] = template({"1":function(container,depth0,helpers,partia return " " - + alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":6,"column":27},"end":{"line":6,"column":35}}}) : helper))) + + "\" alt=\"\" /> " + + alias4(((helper = (helper = lookupProperty(helpers,"name") || (depth0 != null ? lookupProperty(depth0,"name") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data,"loc":{"start":{"line":6,"column":35},"end":{"line":6,"column":43}}}) : helper))) + "\n"; },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) { var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3="function", alias4=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) { diff --git a/apps/files_sharing/js/templates/files_drop.handlebars b/apps/files_sharing/js/templates/files_drop.handlebars index 4128c920cb937..6c9ac101dae1a 100644 --- a/apps/files_sharing/js/templates/files_drop.handlebars +++ b/apps/files_sharing/js/templates/files_drop.handlebars @@ -3,6 +3,6 @@
{{name}}
{{else}} - {{name}} + {{name}} {{/if}}