The "place block" dialog offers a text input to filter by block name. When using this list of blocks changes dynamically. The change is easily noted visually, but is not conveyed to users with screen readers.
Drupal.announce() to convey a short message about the number of blocks now present in the filtered list.
debounce() is required to prevent too many updates and decrease the amount of announces to a minimum.
We already do this with the module filter on the
admin/modules page - see
- DONE - Devise the announcement string(s): "6 blocks are available in the modified list."
- DONE - Update
Drupal.announce(), handling singular/plural results.
User interface changes
- No visible changes intended.
- Add a screen reader announcement to convey updates which are currently only apparent visually.
- Introduces a new translatable string for Drupal.announce().
Data model changes