summaryrefslogtreecommitdiff
path: root/searx/static
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-04-21 20:16:08 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-04-27 09:33:20 +0200
commitd5930558882dffa22eda3bdd95a24e8c430b66c3 (patch)
tree347d7509c17ca41917ecf06f7e888e2860ab5bc8 /searx/static
parent42b58eb4489e0493dc97a4a35b49921539c36d90 (diff)
downloadsearxng-d5930558882dffa22eda3bdd95a24e8c430b66c3.tar.gz
searxng-d5930558882dffa22eda3bdd95a24e8c430b66c3.zip
[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 `<svg ..>` 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 <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static')
-rw-r--r--searx/static/themes/simple/gruntfile.js2
1 files changed, 1 insertions, 1 deletions
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" }
]
}
}