MediaThumbnailFormatter produces unhelpful text alternative and title attributes for media thumbnails

Created on 27 March 2018, over 6 years ago
Updated 30 September 2023, about 1 year ago

Problem/Motivation

We have trouble with alt text for Thumbnail formatter. It is very similar to Media entity bug β†’ , but we use module Media in core.

The thumbnail alt test for media items is often unhelpful and is Thumbnail. In this instance the accessibility maintainers have decided that no alt text for thumbnails is preferable. Also they pointed out that the title attribute is problematic and should not be used at all - see #27and #4.

Proposed resolution

  • Remove the title attribute for thumbnails
  • Remove alt for thumbnails unless we have sensible text which we do for images.

Remaining tasks

User interface changes

Thumbnail don't have title attributes. Alt text on image media thumbnails is helpful. Alt text on other media types is omitted.

API changes

None

Data model changes

None

Release notes snippet

N/a

πŸ› Bug report
Status

Fixed

Version

8.7 ⚰️

Component
MediaΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¨πŸ‡ΏCzech Republic siva01

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024