michaelbazos / angular-feather

A-la-carte integration of Feather Icons in Angular applications
MIT License
155 stars 38 forks source link

Providing an alt #54

Closed AbdealiLoKo closed 3 months ago

AbdealiLoKo commented 2 years ago

Is there any way for me to provide an "alt" value for the icons when I use i-feather ?

meppig commented 1 year ago

SVG content will be inlined and if you pick the images (FeatherModule.pick({})) before using them then there shouldnt be a case where an alt text is needed. If it's for accessibility you could set the aria-label attribute on the i-feather tag, see this discussion here: https://stackoverflow.com/a/4756461