Form field missing a label

Created on 17 June 2024, 3 months ago
Updated 18 June 2024, 3 months ago

I have a client that uses SiteImprove to generate accessibility reports. It is flagging this textarea input as needing an accessible label:

<fieldset data-drupal-selector="edit-captcha" class="captcha captcha-type-challenge--recaptcha">
  <legend class="captcha__title js-form-required form-required">CAPTCHA</legend>
  <div class="captcha__element">
    <input data-drupal-selector="edit-captcha-sid" type="hidden" name="captcha_sid">
    <input data-drupal-selector="edit-captcha-token" type="hidden" name="captcha_token">
    <input data-drupal-selector="edit-captcha-response" type="hidden" name="captcha_response" value="Google no captcha">
    <div class="g-recaptcha" data-theme="light" data-type="image" data-size="compact">
      <div>
        <iframe frameborder="0" scrolling="no" style="width: 302px; height: 422px;"></iframe>
        <div style="margin: -4px 0px 0px; padding: 0px; background: rgb(249, 249, 249); border: 1px solid rgb(193, 193, 193); border-radius: 3px; height: 60px; width: 300px;">
          <textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response" style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: block;"></textarea>
        </div>
      </div>
    </div>
    <input data-drupal-selector="edit-captcha-cacheable" type="hidden" name="captcha_cacheable" value="1">
  </div>
</fieldset>
🐛 Bug report
Status

Closed: won't fix

Version

3.2

Component

General

Created by

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