Empty alt tags should be rendered

Created on 11 November 2022, about 2 years ago
Updated 9 February 2023, almost 2 years ago

Problem/Motivation

Contrary to #3300159: Alt field filed even if optional we should output empty alt tags if the attribute is enabled. The alt attribute is required on img tags and should be left blank for decorative images. This is how core's Image media is handled.

Steps to reproduce

Add SVG image field
Enable alt tag via field settings
Enable alt tag via formatter settings

Proposed resolution

Remove empty check from formatter.

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇦🇺Australia acbramley

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024