Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Form elements should always have labels to meet accessibility criteria.
Steps to reproduce
Proposed resolution
Add a label to the select element, e.g. "Choose your 2FA method", by using the '#title' render key.
(note it would also be handy if it was possible to set the default 2FA method, including having the default method be the empty option label).
Comment | File | Size | Author |
---|---|---|---|
#4 | 3335471-4.miniorange_2fa_label_for_select_element.patch | 849 bytes | sudhanshu_dhage |
Issue fork miniorange_2fa-3335471
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sudhanshu_dhage CreditAttribution: sudhanshu_dhage as a volunteer commentedThe patch is attached to add a label for the selected element.
Comment #5
Shrishail HiremathThis has been taken care of in the 5.0.1
Comment #6
Shrishail Hiremath