Improve the accessibility of the search field

Created on 30 July 2024, about 2 months ago
Updated 31 July 2024, about 2 months ago

Problem/Motivation

At the moment if you enter a search term into the search field the query is submitted without the need of pressing the return key and the search results underneath are updated accordingly. That is happening unexpected to the user, which is not in line with WCAG 2.2 SC 3.2.2 https://www.w3.org/WAI/WCAG22/Understanding/on-input.html

Steps to reproduce
  • go to /admin/modules/browse
  • enter something into the search field without pressing the return key at the end

Proposed resolution

There are two options to either inform the user upfront or adding a submit button. I would vote for the latter and apply a behavior that if you press the return key while the search field is still being active or if you press the submit button a new search is triggered (a pattern for example amazon uses).

🐛 Bug report
Status

Active

Version

2.0

Component

User experience

Created by

🇩🇪Germany rkoller Nürnberg, Germany

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

Production build 0.71.5 2024