Project

General

Profile

Actions

Bug #93826

closed

Role "img" requires an acceessible name

Added by Martin Kutschker about 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2021-03-27
Due date:
% Done:

100%

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

Description

Remove pointless role="img" on SVG icons that are used within links that need a link text ynaways.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #93070: SVG icons have pointless role "img"Closed2020-12-13

Actions
Actions #1

Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/68623

Actions #2

Updated by Anonymous about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #3

Updated by Riccardo De Contardi almost 3 years ago

  • Related to Bug #93070: SVG icons have pointless role "img" added
Actions #4

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions #5

Updated by Martin Kutschker over 2 years ago

I found out that there was in fact a reason to add role="img" to SVGs, despite that this is generally considered bad practice. It's a "feature" of Safari that has been changed with the current/next release: if an IMG has a SVG as its source the alt text is not spoken unless the role attribute is present.

Too bad the reason was never mentioned in the code.

Actions

Also available in: Atom PDF