Skip to content

[Image + Teaser] Don't require ALT text if no asset selected #2523

Open
@ky940819

Description

Bug Report

Current Behavior
When editing an image component, if no image is provided, or the image component inherits the page image and no such image is configured, the dialog still requires an alt text to be specified. This encourages users to either add a blank/garbage alt text to allow the dialog to save, or to set the image as decorative - which may not be appropriate.

This may seem trivial in image components, because there is no good reason to add an image component without an image; however, the image dialog is also used in other components - such as the Teaser component - where an image is often not provided, which is an entirely valid use case for a teaser.

In this situation, the dialog is difficult to work with because the user should not have to play with alt text settings in a teaser with no image.

Expected behavior/code
The alt text should only be a required field if an image asset is configured.

Environment

  • AEM 6.5.17.0
  • Core Components version 2.23.0
  • JRE version 11

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions