Skip to content

Close open accordion tab with escape key, when tabbing away #6474

Open
@nlhkabu

Description

@nlhkabu

Currently, it is possible to open and close the accordion component (seen on the search results page) using the keyboard.

However, it would be nice to:

  • Automatically close the open accordion section (accordion__content) when the user tabs to the next accordion trigger (accordion__link)
  • Allow the user to close the current section (accordion__content) using the esc key

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityIssues with accessibility or to improve accessibilityhelp neededWe'd love volunteers to advise on or help fix/implement this.javascriptrequires change to JavaScript files

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions