Bug #91296
closedf:core.icon does not output alt= on images
100%
Description
The ViewHelper f:core.icon https://docs.typo3.org/other/typo3/view-helper-reference/master/en-us/typo3/core/latest/Icon.html
outputs <img> tags without any alt=. At the minimum it should output alt="" as screenreaders would else read the image filename.
Giving the possiblity to set the alt= would be even better.
Use case would be the search results of indexed_search for example. Giving an alt="zip file" would be beneficial there.
Updated by Georg Ringer about 4 years ago
- Status changed from New to Needs Feedback
can you please add a screenshot of the icons in the frontend? I don't see any icons not having at least an empty alt tag. thanks
Updated by Jonas Eberle about 4 years ago
I checked in v10 and it was fixed by https://review.typo3.org/c/Packages/TYPO3.CMS/+/62304
Just for reference: This would be the minimum viable example:
page = PAGE page.10 = FLUIDTEMPLATE page.10 { template = TEXT template.value = <core:icon identifier="actions-menu" /> }
Updated by Jonas Eberle about 4 years ago
- Status changed from Needs Feedback to Resolved
- % Done changed from 0 to 100
Updated by Jonas Eberle about 4 years ago
I must have mixed up v9 and v10 in my bug report.