Use alt and title attribute from image field

Created on 7 May 2024, about 2 months ago

Problem/Motivation

#3027703: Alt and title text. β†’ adds a way to set a fixed alt text or get it from another field but I could not find a way to use the alt text from the image field itself.

Steps to reproduce

Create an image field and use image_popup as formatter.
Upload an image and set an alt text.
The alt text is not used by the formatter.

Proposed resolution

ImagePopupFieldFormatter::viewElements() should use the alt text and title from the image field if nothing is set in the formatter settings.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024