Skip to content

details tag in jQuery UI dialog not reachable via tab #2410

Description

@DanielRuf

It seems there is a whitelist of tabbable html elements / tags, and <details> is not one of them.

That leads to the case, where any <details> can not be reached via tab in a jQuery UI dialog.

Relevant code parts:
https://github.com/jquery/jquery-ui/blob/main/ui/focusable.js#L45

https://github.com/jquery/jquery-ui/blob/main/ui/tabbable.js#L34

A workaround is to manually (or via some observer / listener / callback function in JavaScript) add tabindex="0" to any <details> and other elements missing in the list from the second code part. Not very elegant and a bit cumbersome, but adding the tabindex="0" at least fixes this accessibility problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions