In WYSIWYG embed modal for existing images, the alt text field should have a default value instead of placeholder text

Created on 12 October 2019, over 4 years ago
Updated 31 January 2024, 5 months ago

Problem/Motivation

During assistive tech walkthroughs, we discovered that it is cognitively confusing to sighted users, and also confusing to screenreader users, that the alt text is placed into the field in a way that makes it appear to be merely placeholder text.

This occurs when the media embed WYSIWYG is used to add an existing image. The existing image's alt text is present as a placeholder, but should instead be the input's actual value.

This interaction can be viewed on the video recording of the September 29, 2019 walkthrough of Media Library at around minute 47.

Proposed resolution

Change it so that the alt text is pre-filled in as regular input, not as placeholder text.

Remaining tasks

  • Adjust and test

User interface changes

Changes the alt text from placeholder to default.

API changes

None anticipated.

Data model changes

None anticipated.

Release notes snippet

TBD

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
MediaΒ  β†’

Last updated about 18 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States rainbreaw

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.

  • 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 Charles Belov San Francisco, CA, US

    For maximum usability, I would suggest the following.

    • Show the existing media library default alternative text outside the field, so that someone who is typing new text in the field can refer to the existing text while they are typing the new text. This reduces cognitive load and also makes it easier for the content editor to
      • decide whether they want to keep the default alt text or write new alt text.
      • revert any edits while still having the original available to them.
    • Ensure that the displayed existing text is copy-and-paste-able.
Production build 0.69.0 2024