Incorrect module count passed to Drupal.announce() on uninstall page

Created on 13 November 2017, about 7 years ago
Updated 26 January 2023, almost 2 years ago

Problem/Motivation

The uninstall page (admin/modules/uninstall) has a text filter to make it easy to find a module you are interested in.

When filtering the list, Drupal.announce() is used to inform screen reader users how many rows are now shown on the page. However, this announcement is always "0 modules are available in the modified list" no matter whether there are matches or not.

The same Drupal.behaviors.tableFilterByText is used for both the install and uninstall pages, but the page structure is different. It looks like the filter logic only works properly on the install page.

Proposed resolution

Fix the Drupal.announce() message so the module count is correct.

Investigate the jQuery CSS selectors used by system.modules.es6.js to see why the counts passed to Drupal.announce() are wrong.

Remaining tasks

User interface changes

Fixes a bug in a custom screen reader announcement.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs work

Version

10.0

Component
System 

Last updated 8 days ago

No maintainer
Created by

🇬🇧United Kingdom andrewmacpherson

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.

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