Problem/Motivation

After clicking the "Show more" or "Show less" link on a Facet that has a limit, keyboard / screenreader focus remains on the "Show more" or "Show less" link; so the next thing that the screenreader reads is the next facet block.

Proposed resolution

Set focus on the first checkbox in the facet after expanding or collapsing the facet.

Remaining tasks

  1. Write a patch
  2. Review and feedback
  3. RTBC and feedback
  4. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mparker17 created an issue. See original summary.

mparker17’s picture

Status: Active » Needs review
FileSize
1.03 KB

Here's a patch. Feedback welcome!

Sophie.SK’s picture

This patch didn't apply to FacetAPI 1.5, so I rerolled it against that version.

It also only applied to inputs/checkboxes. Our version uses links. The patch no longer does exactly the same thing, but hopefully by adding a second patch I can help someone else :)

Status: Needs review » Needs work

The last submitted patch, 3: 2860317-3-assistive-tech-focus-facet-limit.patch, failed testing. View results

Sophie.SK’s picture

Uploading the correct path in the patch