diff options
author | 2023-07-02 23:28:02 +0300 | |
---|---|---|
committer | 2023-07-07 15:44:44 -0700 | |
commit | 29a06511a9af8639da3134c4703a4b993b7534eb (patch) | |
tree | d3dd973e867160cffc5e6d18188cd5e20504d9b9 /ui/static/js/app.js | |
parent | bfb4fc1c3638b25837bf189e6c45d3cea3df8d73 (diff) | |
download | v2-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.js | 2 |
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"); } } |