Skip to content

Commit

Permalink
Corrected issue at Accessible360#52 - useGroupRole and centerMode ove…
Browse files Browse the repository at this point in the history
…rwrote allSlides, wasn't removing " (centered)" from the ARIA label.
  • Loading branch information
fractile81 committed Dec 16, 2021
1 parent a18817d commit 90d74bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions slick/slick.js
Original file line number Diff line number Diff line change
Expand Up @@ -2289,8 +2289,7 @@
.attr('aria-hidden', 'true');

if (_.options.useGroupRole !== false && _.options.centerMode === true) {
allSlides = allSlides
.find('slick-slide')
allSlides
.attr('aria-label', function() {
return $(this).attr('aria-label').replace(' (centered)', '');
});
Expand Down

0 comments on commit 90d74bd

Please sign in to comment.