#108487Unclear alt/title attributes on image thumbnails in content element references for screen reader users
Description
In the TYPO3 backend, image thumbnails in content elements use a title attribute (tooltip) and an unhelpful alternative text. This confuses editors and harms accessibility (screen readers). Proposed change: remove the title attribute and provide a short, meaningful alternative text based on state, e.g.:
“Expand file-[ID], [file title]”
“Collapse file-[ID], [file title]”
Reproduction Steps
In the backend, create/edit a content element with images (e.g., “Text & Media”).
Switch to the “Images” tab and add an image.
Hover the thumbnail (tooltip appears) and/or check with a screen reader.
Inspect the DOM: thumbnail has title; alt is not meaningful.
Impact
Accessibility: Screen readers announce confusing or redundant information.
Usability: Tooltips are not helpful; unclear state description (open/close).
Consistency: Inconsistent use of alt/title in the backend.
Recommended Solution
Remove the title attribute from thumbnail elements in the backend.
Set a concise, meaningful alt text dynamically (based on UI state), pattern:
“Expand file-[ID], [file title]” or “Collapse file-[ID], [file title]”.
Optionally add aria-label for interactive controls.
Ensure no frontend output is affected.
Definition of Done
No thumbnail title attributes in the relevant backend image field views.
alt attribute contains a short, precise state description incl. file ID and title.
Screen reader output is clear and non-redundant.
Manual tests in current browsers; no regressions in other backend lists/forms.
Acceptance Criteria
No tooltip from title appears on hover.
In the DOM, title is removed; alt follows the described pattern according to state (open/close).
Screen readers announce the alt text correctly; no duplicate/misleading info.
Image selection/interaction functionality remains unchanged.
References
- WCAG 2.2 – Understanding SC 1.1.1 Non-text Content
> * https://www.w3.org/WAI/WCAG22/Understanding/non-text-content.html - WCAG 2.2 – Technique H37: Using alt attributes on img elements
> * https://www.w3.org/WAI/WCAG22/Techniques/html/H37 - WCAG 2.2 – Technique H67: Using null alt text and no title attribute for decorative images
> * https://www.w3.org/WAI/WCAG22/Techniques/html/H67 - WCAG 2.2 – Failure F30: Using text alternatives that are not alternatives
> * https://www.w3.org/WAI/WCAG22/Techniques/failures/F30 - WCAG 2.2 – Understanding SC 1.4.13 Content on Hover or Focus
> * https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html - WCAG 2.2 – Technique G94: Providing short text alternatives that serve the same purpose
> * https://www.w3.org/WAI/WCAG22/Techniques/general/G94
Reviews 3
Files 1
History 112
-
Gerrit Code Review pushed patch set 1 for main to change 93845 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-27T10:19:38+00:00" > 04/27/26, 10:19 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93845 <span data-processor="relativetime" data-value="2026-04-27T10:23:49+00:00" > 04/27/26, 10:23 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 93845 <span data-processor="relativetime" data-value="2026-04-29T12:23:10+00:00" > 04/29/26, 12:23 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 94538 <span data-processor="relativetime" data-value="2026-06-22T08:58:13+00:00" > 06/22/26, 08:58 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 93845 <span data-processor="relativetime" data-value="2026-06-22T09:01:31+00:00" > 06/22/26, 09:01 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 93845 <span data-processor="relativetime" data-value="2026-09-10T09:06:39+00:00" > 09/10/26, 09:06 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 93845 <span data-processor="relativetime" data-value="2026-10-02T06:48:35+00:00" > 10/02/26, 06:48 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 94538 <span data-processor="relativetime" data-value="2026-10-02T09:54:04+00:00" > 10/02/26, 09:54 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 94538 <span data-processor="relativetime" data-value="2026-10-02T09:54:17+00:00" > 10/02/26, 09:54 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 94538 <span data-processor="relativetime" data-value="2026-10-22T15:00:39+00:00" > 10/22/26, 15:00 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97084 <span data-processor="relativetime" data-value="2026-10-23T14:17:37+00:00" > 10/23/26, 14:17 </span>
-
Christian Rath-Ulrich commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-23T18:00:19+00:00" > 10/23/26, 18:00 </span>
Applied in changeset commit:d1ed77c3839780e6d9d121f813c867aafd668219.