]> source.dussan.org Git - jquery-ui.git/commit
Dialog: Add aria-modal support
authorRalf Koller <1665422+rpkoller@users.noreply.github.com>
Fri, 14 Jun 2024 11:04:00 +0000 (13:04 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Jun 2024 11:04:00 +0000 (13:04 +0200)
commit376f142b9de42241a20efa9c89644ff5425da174
tree129292775f86739ece147a04442c13039428d4c0
parent1f251ca399ec01c75d24293e49ac767938a547e2
Dialog: Add aria-modal support

Reflect the `modal` dialog option into the `aria-modal` attribute -
when `modal` is `true`, set `aria-modal` to `"true"`.

This helps some accessibility tools like VoiceOver with their rotor
functionality as it reduces the number of elements presented.

Fixes gh-2246
Closes gh-2257

Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
tests/unit/dialog/core.js
ui/widgets/dialog.js