Skip to content
Snippets Groups Projects
Commit 3dca0573 authored by utkarsh_33's avatar utkarsh_33 Committed by Chris Wells
Browse files

Issue #3489972 by utkarsh_33, chrisfromredfin, narendrar: Accessibility of...

Issue #3489972 by utkarsh_33, chrisfromredfin, narendrar: Accessibility of detail modal: focus the modal window on open
parent 84df9984
No related branches found
No related tags found
1 merge request!632#3489972:Accessibility of detail modal
Pipeline #365985 passed with warnings
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -63,4 +63,8 @@ export const openPopup = (getMessage, project) => { ...@@ -63,4 +63,8 @@ export const openPopup = (getMessage, project) => {
} }
}); });
popupModal.showModal(); popupModal.showModal();
const modalElement = document.querySelector('.project-browser-detail-modal');
if (modalElement) {
modalElement.focus();
}
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment