Skip to content
Snippets Groups Projects
Commit 46d6f35e authored by Olivia206's avatar Olivia206
Browse files

added aria-modal attribute

parent 71fdc086
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ const lightbox = gLightbox({
closeEffect: 'fade',
onOpen: () => {
lightboxBtn = document.activeElement;
const lightboxContainer = document.querySelector('#glightbox-body');
lightboxContainer.setAttribute('aria-modal', 'true');
if(siteLang == "fr") {
const nextButton = document.querySelector('.gnext');
......
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