For accessibility reasons, focus should be kept on captcha buttons after being used to reload image or play sound

Created on 14 May 2024, about 2 months ago
Updated 15 May 2024, about 2 months ago

Problem/Motivation

The javascript blur() method is called on captcha buttons after being clicked to reload the captcha image or play the sound.

It's sadly a bit annoying on an accessibility point of view: the focus shouldn't be lost when using those buttons.

Steps to reproduce

Just click on one on those two buttons and you will notice that focus is lost.

I haven't found any valid reason for that behavior, feel free to chime in if you know some reason it could behave like that.

Proposed resolution

A solution has been implemented that simply disables the blur() method on those buttons.

Remaining tasks

Validate MR.

User interface changes

Focus won't be lost anymore when clicking on the captcha buttons.

We can make this configurable if some people want to keep the original behavior:

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France mably

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