Problem/Motivation
Similar to #3562910: Keyboard focus not properly managed after AJAX filter selection of radio button on view page / Screen reader focus not working as expected on AJAX filter selection on view page, the keyboard focus after AJAX is not properly handled for checkboxes.
The fix is trivial; it's mostly the same as for radio buttons, just a few changes are needed to enable it.
Steps to reproduce
Same as #3562910: Keyboard focus not properly managed after AJAX filter selection of radio button on view page / Screen reader focus not working as expected on AJAX filter selection on view page, but for checkboxes.
- Navigate to a Drupal view page with an AJAX filter (having auto-submit enabled) using a keyboard interface.
- Select a filter option checkbox.
- Observe that the view updates with new content but the keyboard focus is not on the selected div.
Proposed resolution
Update the code to handle checkboxes the same way as radio buttons.
Remaining tasks
Automated test.
User interface changes
API changes
Data model changes
Issue fork better_exposed_filters-3576710
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
abrammComment #4
abrammComment #7
smustgrave commentedsmall enough I'm fine with merging as is. Thanks.