Skip to content
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

Merged

Conversation

vltansky
Copy link
Collaborator

@vltansky vltansky commented Dec 2, 2021

@nolimits4web
Copy link
Owner

nolimits4web commented Dec 3, 2021

There is already updatePagination function there which already executes in paginationUpdate handler. So this logic should be moved there

@vltansky
Copy link
Collaborator Author

vltansky commented Dec 5, 2021

fixed

if (hasPagination()) {
swiper.pagination.bullets.each((bulletEl) => {
const $bulletEl = $(bulletEl);
const doHasPagination = hasPagination();
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants