Empty alt tags should be rendered

Created on 11 November 2022, over 1 year ago
Updated 9 February 2023, over 1 year 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.69.0 2024