Actions
Bug #93826
closedRole "img" requires an acceessible name
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.
Updated by Gerrit Code Review over 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
Updated by Anonymous over 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 819380b1458cce9b0cd94bbbbe325145b5f13f14.
Updated by Riccardo De Contardi over 3 years ago
- Related to Bug #93070: SVG icons have pointless role "img" added
Updated by Martin Kutschker about 3 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