Skip to content

Ensure that focus remains on the button that was clicked. #2988

@h-parekh

Description

@h-parekh

Descriptive summary

Keyboard focus is lost each time a new sort button is clicked.

Rationale

WCAG guideline 3.2.2:

The intent of this Success Criterion is to ensure that entering data or selecting a form control has predictable effects

Expected behavior

Focus should remain on the button that was clicked

Actual behavior

On clicking a button using keyboard, the button loses its focus.
Affected items:

  • Sort By dropdown
  • Results per page dropdown
  • List button
  • Gallery button
  • Masonry button
  • Slideshow button

Steps to reproduce the behavior

  1. Search for something in Nurax - Example page
  2. Tab through using your keyboard to any of the buttons listed above and hit 'Return' key.
  3. Notice that the button lost focus

Related work

#1246 is similar tabbed focus issue for keyboard users, but may have a different root cause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions