- 🇳🇱Netherlands eelkeblok Netherlands 🇳🇱
Yes, I agree. I like the idea of using a class a lot. We ourselves are replacing the default images with a reference to an SVG sprite, that sounds like something not too different from this.
- cbc6a19d committed on 8.x-1.x
Issue #3206095 by juagarc4, elaman: Allow the use of iconfonts classes
- cbc6a19d committed on 8.x-1.x
- Status changed to Fixed
7 months ago 5:09pm 18 May 2024 - 🇰🇬Kyrgyzstan elaman
I've added a feature to allow users to select icon type between:
- uploaded image (current behavior, default)
- remote image
- html element (option to select between i, div, spanAlso I've added icon class setting, to applied to all of these types.
Updated the twig file:
- With new icon type rendering ways.
- Added alt to img tags for accessibility.
- Added aria-label to the html element icon type.Backward compatibility tested, shouldn't have to change anything and it shouldn't break anything in websites already using this module.
Automatically closed - issue fixed for 2 weeks with no activity.