Change UI flow to add alt text as requirement when media items are selected via an entity browser listing widget

Created on 24 May 2019, almost 6 years ago
Updated 30 July 2024, 9 months ago

Problem/Motivation

Media library doesn't require alt text for new media entities because of the UI flow.

Steps to reproduce issue

TBC

Expected behavior

After selecting the media entity, the user stays in the "Edit Entity" dialog window so that they can complete required alt text and other required fields.

What's happening instead

* After selecting the media entity, user gets redirected back to the content edit page
* User then has to then click the "Edit" button to add the required alt text for the image.
* If you skip this step and Save the content, the image will be saved without the required alt text.
* This makes the Media widget not accessible because alt text is required for images and multimedia per WCAG 1.1.1 Non-text Content (see https://www.w3.org/TR/UNDERSTANDING-WCAG20/text-equiv-all.html)

Proposed resolution

* Once user clicks "Select image" button to add new media, they get redirected to the "Edit entity" dialog window with the entity's details including the required "Alternative text" field.
* They can't save the image without completing the required "Alternative text" field and other required fields, solving the issue.

Remaining tasks

* Create patch from proposed resolution
* Commit

Screenshots of current workflow

Select Media

Add New Image

Content Edit

Edit Entity Without Alt Text

Edit Entity With Alt Text

Screenshots of proposed workflow

Select Media

Add New Image

Edit Entity Without Alt Text

Edit Entity With Alt Text

Content Edit

πŸ’¬ Support request
Status

Active

Version

2.0

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States katannshaw Kansas

Live updates comments and jobs are added and updated live.
  • 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.

  • πŸ‡ΊπŸ‡ΈUnited States matthand Riverdale Park, Maryland

    Still no clear way to expose the alt text using the Entity Browser when selecting from available assets. Current solution is to provide help text for how to click "edit" after selecting the image to add alt text.

Production build 0.71.5 2024