Use Drupal.announce to give a screen reader user a succinct summary of how changes to a View's definition affected the preview

Created on 30 October 2013, over 10 years ago
Updated 29 May 2023, about 1 year ago

Problem/Motivation

Creating a view can be a trial-and-error endeavor. Make a change, check the preview, and then keep the change or revert it depending. For a blind user, the effects of a change to a view's definition are not immediately apparent.

Proposed resolution

We can use the Drupal.announce method on the front end to give the screen reader user a summation of the changes to the preview area. Or even just its current state after a change. Is it a list? Well, how many items are in the list? Is it a table? How many rows are in the table? With views, the change to a view often results in either some data or no data. Just knowing that you added one filter too many or of the wrong type and wiped out your results is super helpful.

Remaining tasks

Propose an initial patch.

User interface changes

Screen reader users will have some indication of what their changes to a view's definition did to the result set in the preview.

API changes

None.

Related Issues

#1806308: Review Views JavaScript + generic modals for accessibility β†’

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
Views UIΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jessebeach

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.

  • VDC

    Related to the Views in Drupal Core initiative.

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.69.0 2024