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.
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 thetabindex="0"at least fixes this accessibility problem.