Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Image V3] Unable to add an image without providing alternative text #2710

Open
lochdown opened this issue Apr 3, 2024 · 0 comments
Open

Comments

@lochdown
Copy link

lochdown commented Apr 3, 2024

Bug Report

Current Behavior
The mandatory "Alternative text for accessibility" text field is still showing as mandatory even if the "Don't provide an alternative text" checkbox is checked as there is an error message if this field is not filled out. This is forcing users to add alternative text, rendering the "Don't provide an alternative text" checkbox as useless.

Steps to replicate:

  1. Click the image component -> Click the configure (wrench icon) button
  2. Check the "Don't provide an alternative text" checkbox
  3. Click Done
  4. Uncheck the "Don't provide an alternative text" checkbox
  5. The "Error: Please fill out this field." message will appear
ImageDefect

Expected behavior/code
When the "Don't provide an alternative text" checkbox is checked, the "Alternative text for accessibility" text field should be optional, allowing the user to submit their image without Alternative text.

Environment

  • AEM version: 2023.12.14697.20231215T125030Z
  • Core Components version: 2.23.4
  • Image version: v3

Possible Solution
Alter the image javascript to make the "Alternative text for accessibility" text field not required when the Don't provide an alternative text" checkbox is checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant