Difficult for authors to embed image media with empty alt text.

Created on 26 September 2019, almost 5 years ago
Updated 22 March 2024, 3 months ago

Problem/Motivation

The media embed CKEditor widget doesn't provide an easy way to let authors embed an decorative image (with alt=""). It lets you specify your own instance-specific override, or accept the default alt text from the media entity.

This is a reasonable use-case. In particular, it will be good to support the "Image with adjacent text alternative" pattern from the WAI (Web Accessibilty Initiative) image tutorials.

It's possible to get alt="" by inserting a literal pair of quotes in the alt text input, but this isn't mentioned in the UI.

It's also possible to use CKEditor "show source" to manually edit the <drupal-media> tag, but that's (a) fiddly, and (b) fragile because later use of the UI dialog will over-write this.

These editorial tasks are all basically of equal importance, but the last one is difficult:

  • Use (or revert to) the previously-stored default text on the media entity.
  • Use an instance-specific override.
  • Use an instance-specific empty alt attribute.

Proposed resolution

TBD.

Remaining tasks

TBD.

User interface changes

TBD.

API changes

TBD.

Data model changes

None?

πŸ› Bug report
Status

Postponed

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated about 19 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom andrewmacpherson

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.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

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.69.0 2024