[drupalImage] Announce image upload for screenreader users

Created on 23 March 2022, over 2 years ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

#3222757: [drupalImage] Make image alt text required or strongly encouraged follow-up to which displays a button images without alt texts.

Proposed resolution

We could do something along these lines:

    const announceHandler = () => {
      Drupal.announce();
    };
    editor.commands.get('insertImage').on('execute', announceHandler);
    editor.commands.get('uploadImage').on('execute', announceHandler);

Craft a message that can cater different use cases:

  1. Single image uploaded
  2. Multiple images uploaded
  3. Image inserted (external images)

Image insert vs Image upload can have different announcements. However, what is challenging to distinguish is when multiple images are uploaded at once since all of them are processed asynchronously separately.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component
CKEditor 5 

Last updated about 11 hours ago

Created by

🇫🇮Finland lauriii Finland

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