Problem/Motivation

Follow-up to #3246365: [drupalMedia] Show the Image Media's default alt text that is being overridden.

Quote from @bnjmnm on #3246365-26: [drupalMedia] Show the Image Media's default alt text that is being overridden:

The fact that AT does not know the existing alt text value is a concern. It's not straightforward as it's not the value of the field... but it is changing a value, and typically the expectation would be that value is conveyed in the input. Visually, this is fairly easy to figure out based on the clear label above the input.

There's a similar issue in CKEditor 4 as the value-to-be-overridden is placeholder text #3087535: In WYSIWYG embed modal for existing images, the alt text field should have a default value instead of placeholder text, so doing this wouldn't be a regression that prevented this from landing.

I'd like a followup created to investigate making the default value more apparent to AT, perhaps by associating the "default alternative text" label with the input as a description (with additional visually hidden text if needed).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

lauriii created an issue. See original summary.

wim leers’s picture

Issue tags: +Accessibility

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

mgifford’s picture

So placeholders can be a problem:
https://www.w3.org/WAI/GL/low-vision-a11y-tf/wiki/Placeholder_Research

But at least in the demo, the alt text seems to be held by a label in CKEditor 5:
https://ckeditor.com/ckeditor-5/demo/feature-rich/

How does someone repeat this problem?

What WCAG SC should it have @bnjmnm?

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.