-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(a11y): add aria-current
to current bullet
#5258
feat(a11y): add aria-current
to current bullet
#5258
Conversation
There is already |
fixed |
…om/vltansky/swiper into feat/a11y/pagination-active-bullet
src/modules/a11y/a11y.js
Outdated
if (hasPagination()) { | ||
swiper.pagination.bullets.each((bulletEl) => { | ||
const $bulletEl = $(bulletEl); | ||
const doHasPagination = hasPagination(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe there is a sense to replace this line with just
if (!hasPagination()) return;
I mean what is the point to to loop over swiper.pagination.bullets
and do checks for pagination inside if hasPagination()
return false?
#3149 (comment)