Skip to content

Replace image aria-label with alt and remove redundant aria-hidden #122

@kirsty-hames

Description

@kirsty-hames

Subject of the enhancement

To align with core change of using alt instead of aria-label - adaptlearning/adapt-contrib-core#822

Testing confirmed all major screen readers handle alt and aria-label equivalently and Adapt would benefit from the broader benefits of alt. Benefits include:

  • alternative text displayed when image fails to load
  • alternative text retained when copying images into Word or similar tools.

Testing also confirmed an empty alt tag (alt="") is widely supported by screen readers / browsers to ignore an image without the need for aria-hidden.

Applies to image, line 4.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Recently Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions