textarea and radio buttons should be labeled for accessibility
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3207887. --> Reported by: [jenna.tollerson](https://www.drupal.org/user/147099) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The version of the feedback form that prints a textarea for users to leave free form feedback doesn't have a label for the textarea. This is an accessibility error that a tool like <a href="https://wave.webaim.org/">WAVE</a> will complain loudly about. Also a11y enhancements are just inherently good.</p> <p>WAVE only issues a warning for the lack of a description of the radio buttons, but we can improve that too.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Put the "feedback prompt" test in a <code>&lt;label&gt;</code> for the textarea, and in a <code>&lt;fieldset&gt;&lt;legend&gt;</code> for the radio buttons.</p> <p>Patch incoming.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>We could probably improve the accessibility of the initial form (the stage with the yes/no buttons) as well, but I'm not clear on what specifically may need to happen.</p>
issue