Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] ionic.io/ionicons - add back missing class="ionicon" #3414

Merged
merged 1 commit into from
Apr 27, 2024

Conversation

return42
Copy link
Member

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: #3383

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: searxng#3383
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks reasonable 👍

@return42 return42 merged commit d593055 into searxng:master Apr 27, 2024
9 checks passed
@return42 return42 deleted the fix-3383 branch April 27, 2024 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new builds of icons.html do miss class="ionicon"
2 participants