reCaptcha shows CAPTCHA legend since CAPTCHA 8.x-1.11 / 2.x update

Created on 27 July 2023, over 1 year ago
Updated 4 August 2023, over 1 year ago

Problem/Motivation

This is a follow-up issue on 🐛 8.x-1.12 shows captcha fieldset, even without captcha output Fixed specific to reCaptcha.

Using CAPTCHA <= 8.x-1.10 using reCaptcha, there was no fieldset legend like "CAPTCHA" shown.
With with 2.x and 8.x-1.11 which is based on 2.x reCaptcha is by default wrapped in a fieldset with CAPTCHA

The "CAPTCHA" label was already there in older versions, but not for reCaptcha, so fixing this is reCaptcha related and should be done in the reCaptcha module. This can't be cleanly solved in CAPTCHA, without introducing a reCaptcha specific if-clause.
So perhaps this will never be done and accepted ad minor breaking change in 2.x?

The issue only exists for existing pages upgrading to 2.x or CAPTCHA > 8.x-1.10.

Simple workaround:

2.x has a setting for the Captcha title at admin/config/people/captcha. Just empty the title there (and in all translations, if multilanguage) and the fieldset and legend are gone, since 📌 Use "legend" HTML element instead of label in 'captcha.html.twig', use div if no title given Fixed .

Steps to reproduce

Proposed resolution

Some options:

  • Solve this in the reCaptcha module?
  • Add an update hook to inform users about the new settings and they should check them?
  • Add an update hook to clear the "title" setting, if reCaptcha module is used and enabled as default captcha?

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024