Problem/Motivation

Drimage improved is missing the title attribute output for image fields.
This causes inconsistencies between Drimage improved and plain Drimage.

Steps to reproduce

  • Add an image field to an entity.
  • Set a title value for the image.
  • View the rendered image on the site, the title attribute is missing from the <img> tag.

Proposed resolution

<img src="{{ dummy_image }}" width="{{ width }}" height="{{ height }}" alt="{{ alt }}"{% if title %}title="{{ title }}"{% endif %} class="drimage-image" />

Remaining tasks

  • ✅ File an issue
  • ✅ Addition/Change/Update/Fix
  • ✅ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ✅ Code review by maintainers
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Release notes snippet
  • ✅ Release drimage_improved-1.0.9

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

Comments

steve hanson created an issue. See original summary.

steve hanson’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Add title attribute to <img> body tag » Add title attribute support to <img> tag in Drimage template
Issue summary: View changes

rajab natshah’s picture

rajab natshah’s picture

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • rajab natshah committed 198d1516 on 1.0.x
    Issue #3522562: Add title attribute support to <img> tag in Drimage...
rajab natshah’s picture

Issue summary: View changes
Issue tags: +drimage_improved-1.0.9
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.