aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-07-13 15:21:55 -0700
committerChristopher Ng <chrng8@gmail.com>2023-07-20 17:13:55 -0700
commitb3e5269963971274187aa37cb8535f1e7695f145 (patch)
treead86a5ae534899b7e12ac51ddae7bc3141a6a791 /core
parentaf6bb98b144d0d333cb29fdd9370ed4465f4ba6e (diff)
downloadnextcloud-server-b3e5269963971274187aa37cb8535f1e7695f145.tar.gz
nextcloud-server-b3e5269963971274187aa37cb8535f1e7695f145.zip
enh(a11y): Add aria-modal to dialogs
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core')
-rw-r--r--core/src/jquery/ocdialog.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js
index c0ef31fc67b..2d547443be9 100644
--- a/core/src/jquery/ocdialog.js
+++ b/core/src/jquery/ocdialog.js
@@ -53,6 +53,7 @@ $.widget('oc.ocdialog', {
// Setting tabIndex makes the div focusable
tabIndex: -1,
role: 'dialog',
+ 'aria-modal': true,
})
.insertBefore(this.element)
this.$dialog.append(this.element.detach())