If the user attempts to upload an incorrect file type through the media library modal, the error message is not read by the screenreader

Created on 11 October 2019, about 5 years ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

When @cboyden's team did an assistive tech walkthrough of Media Library for #2834729: [META] Roadmap to stabilize Media Library β†’ using NVDA on Firefox, we discovered that, when a user attempts to upload a file type that is not allowed in the media library modal, the resulting error message that is provided is not read by the screenreader.

This is a problem because the user has no idea that there is an error, or what the error is, and the cannot proceed until they fix it.

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

Proposed resolution

The suspicion is that the container holding the error message is created dynamically when the error is triggered. Instead, the container for it needs to exist and be empty before there is an error, then populated with the error if an error is triggered.

Note that this is very similar to πŸ› Form validation error messages within the Media Library widget are not read by the screenreader Needs work , and the solution is likely the same or similar.

Remaining tasks

  • Adjust the way the error message container is placed and the message is added to it.

User interface changes

None anticipated.

API changes

None anticipated.

Data model changes

None anticipated.

Release notes snippet

TBD

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
File moduleΒ  β†’

Last updated 1 day 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.

  • Needs accessibility review

    Used to alert the accessibility topic maintainer(s) that an issue significantly affects (or has the potential to affect) the accessibility of Drupal, and their signoff is needed (see the governance policy draft for more information). Useful links: Drupal's accessibility standards, the Drupal Core accessibility gate.

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