Project

General

Profile

Actions

Bug #91296

closed

f:core.icon does not output alt= on images

Added by Jonas Eberle almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
AdminPanel
Target version:
-
Start date:
2020-05-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
accessibility
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Georg Ringer over 3 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

Actions #2

Updated by Jonas Eberle over 3 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" />
}
Actions #3

Updated by Jonas Eberle over 3 years ago

  • Status changed from Needs Feedback to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Jonas Eberle over 3 years ago

I must have mixed up v9 and v10 in my bug report.

Actions #5

Updated by Benni Mack over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF