Skip to content

Commit

Permalink
[TASK] Replace aria-roledescription with aria-label on lightbox
Browse files Browse the repository at this point in the history
Related: #1382
  • Loading branch information
benjaminkott committed Jun 20, 2023
1 parent 6310128 commit f453860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Dist/bootstrap.lightbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Resources/Public/JavaScript/Src/bootstrap.lightbox.js
Expand Up @@ -73,6 +73,8 @@ window.addEventListener('DOMContentLoaded', function () {
});
gallery.on('firstUpdate', () => {
gallery.pswp.element.ariaModal = true;
gallery.pswp.scrollWrap.ariaLabel = 'carousel';
gallery.pswp.scrollWrap.removeAttribute('aria-roledescription');
});
gallery.init();
gallery.loadAndOpen(index);
Expand Down

0 comments on commit f453860

Please sign in to comment.