Problem/Motivation

The alt attribute provides a textual alternative to an image. It is used whenever the actual image cannot be rendered. Common reasons for that include: The image can no longer be found; Visually impaired users using a screen reader software; Images loading is disabled, to reduce data consumption on mobile phones.

Add an "alt" attribute to this image.

File: webform/modules/webform_bootstrap/tests/modules/webform_bootstrap_test_module/style-guide/images.html

      <img src="http://placehold.it/100x200" style="height: 200px; width: 100%; display: block;">
...
      <img src="http://placehold.it/100x200" style="height: 200px; width: 100%; display: block;">
...
      <img src="http://placehold.it/100x200" style="height: 200px; width: 100%; display: block;">

Proposed resolution

      <img src="http://placehold.it/100x200" alt="…" style="height: 200px; width: 100%; display: block;">
...
      <img src="http://placehold.it/100x200" alt="…" style="height: 200px; width: 100%; display: block;">
...
      <img src="http://placehold.it/100x200" alt="…" style="height: 200px; width: 100%; display: block;">

Issue fork webform-3306801

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fnalb2 created an issue. See original summary.

immaculatexavier made their first commit to this issue’s fork.

immaculatexavier’s picture

Status: Active » Needs review

Committed in accordance to the proposed resolution

shyam_bhatt’s picture

Status: Needs review » Reviewed & tested by the community

When I installed "webform_bootstrap" and add the image file filed in the web form. An "alt" attribute to this image. Please check the below code.
<img src="http://placehold.it/100x200" alt="…" style="height: 200px; width: 100%; display: block;">
The patch is working fine.

jrockowitz’s picture

Version: 6.2.x-dev » 6.1.x-dev

Can you please change the version to webform 6.1.x?

  • ab579fa committed on 6.1.x
    Issue #3306801 by immaculatexavier: Add "alt" attributes to the images...

  • ab579fa committed on 6.x
    Issue #3306801 by immaculatexavier: Add "alt" attributes to the images...

  • ab579fa committed on 6.2.x
    Issue #3306801 by immaculatexavier: Add "alt" attributes to the images...
jrockowitz’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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