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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bertdeboer created an issue. See original summary.

bertde.boer@hotmail.com’s picture

I've added a patch which adds the for attribute to the label.

jlstrecker’s picture

Status: Active » Needs review
jhedstrom’s picture

Version: 1.0.0-beta1 » 1.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: +a11y

Confirmed this adds the for attributes as expected.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: 3273730-Add-for-attribute-to-label.patch, failed testing. View results

claudiu.cristea’s picture

Status: Needs work » Reviewed & tested by the community

Test failure is from 1.x HEAD.

claudiu.cristea’s picture

Can anyone make a MR based on the patch?

jhedstrom’s picture

I added an MR with the changes from the patch.

claudiu.cristea’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.