From d5930558882dffa22eda3bdd95a24e8c430b66c3 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 21 Apr 2024 20:16:08 +0200 Subject: [fix] ionic.io/ionicons - add back missing class="ionicon" Seems to me svg2jinja added the class in the past .. but no longer in new builds / this patch adds the class back by using addAttributesToSVGElement [1]. To test this patch use: $ ./manage themes.simple $ cat searx/templates/simple/icons.html and check `class="ionicon"` is in the outer `` tags. [1] https://svgo.dev/docs/plugins/add-attributes-to-svg-elements/ [2] https://ionic.io/ionicons Closes: https://github.com/searxng/searxng/issues/3383 Signed-off-by: Markus Heiser --- searx/static/themes/simple/gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/static/themes/simple/gruntfile.js') diff --git a/searx/static/themes/simple/gruntfile.js b/searx/static/themes/simple/gruntfile.js index 630cac212..9410a674b 100644 --- a/searx/static/themes/simple/gruntfile.js +++ b/searx/static/themes/simple/gruntfile.js @@ -218,7 +218,7 @@ module.exports = function (grunt) { name: "addAttributesToSVGElement", params: { attributes: [ - { "aria-hidden": "true" } + { "class": "ionicon", "aria-hidden": "true" } ] } } -- cgit v1.2.3-54-g00ecf