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
As I was using the facets date range module, I tested my page with Axe Devtools (accessibility tool). It noticed that the label of the date element currently has no for attribute, which is a best practice of Web Content Accessibility Guidelines (WCAG).
Steps to reproduce
Proposed resolution
Add the label for attribute to the label of the date elements.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 3273730-Add-for-attribute-to-label.patch | 925 bytes | bertde.boer@hotmail.com |
Issue fork facets_date_range-3273730
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 #2
bertde.boer@hotmail.com CreditAttribution: bertde.boer@hotmail.com commentedI've added a patch which adds the for attribute to the label.
Comment #3
jlstreckerComment #4
jhedstromConfirmed this adds the
for
attributes as expected.Comment #6
claudiu.cristeaTest failure is from 1.x HEAD.
Comment #7
claudiu.cristeaCan anyone make a MR based on the patch?
Comment #9
jhedstromI added an MR with the changes from the patch.
Comment #11
claudiu.cristea