Skip to content

Accordion: allow finding of content in collapsed panels #7672

@damienrobson-sage

Description

@damienrobson-sage

Description

It is currently not possible for users to search for content via browser find-in-page functionality within collapsed accordion content. This is problematic for keyboard-only and screen reader users as the only way to find content currently is to expand all accordions on-screen first and then perform a find.

Suggested solution

Apply the hidden="until-found" attribute to the content container to allow searching within collapsed accordions. Note this is not currently supported by Safari but is supported in all other browsers (though it might be on the way to Safari too)

Example implementation

Demo URL

No response

Alternatives

No response

Additional context

No response

Confidentiality

  • I confirm there is no confidential or commercially sensitive information included.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions