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.

Comments

mparker17 created an issue. See original summary.

mparker17’s picture

Status: Active » Needs review
StatusFileSize
new1.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

StatusFileSize
new1004 bytes

Uploading the correct path in the patch

durifal’s picture

Status: Needs work » Needs review
StatusFileSize
new422 bytes

Here is patch which works fine with facetapi 1.9