Provide accessibility improvement for search results

Created on 10 April 2025, 14 days ago

Problem/motivation

Per https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA22 , search results should be identified as such with an aria role="status" attribute. Google does not include this in the markup from Programmable Search Engine. Until such time that Google does provide that markup, this module can improve accessibility by adding it as a progressive enhancement/

Research

According to https://www.w3.org/WAI/WCAG21/Understanding/status-messages.html , a status message can be defined as a message that "provides information to the user on the success or results of an action, on the waiting state of an application, on the progress of a process, or on the existence of errors." This matches what a search results text does.
The example from https://www.w3.org/WAI/WCAG21/working-examples/aria-role-status-searchre... demonstrates a search result using the role=status attribute.

Other sources corroborate this:

Proposed resolution

Add a form option, enabled by default for new and existing installations, that adds `role="status"` to Google search results displayed on the site.

✨ Feature request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mark_fullmer Tucson

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024