aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js/app.js
diff options
context:
space:
mode:
authorGravatar Tuukka Ojala <tuukka.ojala@iki.fi> 2023-07-02 23:28:02 +0300
committerGravatar Frédéric Guillot <f@miniflux.net> 2023-07-07 15:44:44 -0700
commit29a06511a9af8639da3134c4703a4b993b7534eb (patch)
treed3dd973e867160cffc5e6d18188cd5e20504d9b9 /ui/static/js/app.js
parentbfb4fc1c3638b25837bf189e6c45d3cea3df8d73 (diff)
downloadv2-29a06511a9af8639da3134c4703a4b993b7534eb.tar.gz
v2-29a06511a9af8639da3134c4703a4b993b7534eb.tar.zst
v2-29a06511a9af8639da3134c4703a4b993b7534eb.zip
Fix accessibility issues in modal component
* Fix modal aria role * Trap focusing with tab / shift+tab inside the modal * Restore keyboard focus when closing modal * Automatically move keyboard focus to first focusable element unless specified otherwise * Keyboard shortcut help modal: move keyboard focus to modal title * Keyboard shortcut help modal: change close control from link to button
Diffstat (limited to 'ui/static/js/app.js')
-rw-r--r--ui/static/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/static/js/app.js b/ui/static/js/app.js
index 308a22b7..e75c2ddf 100644
--- a/ui/static/js/app.js
+++ b/ui/static/js/app.js
@@ -94,7 +94,7 @@ function setFocusToSearchInput(event) {
function showKeyboardShortcuts() {
let template = document.getElementById("keyboard-shortcuts");
if (template !== null) {
- ModalHandler.open(template.content);
+ ModalHandler.open(template.content, "dialog-title");
}
}