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

"Next" button has aria-disabled="true" even when the button is disabled (accessibility issue) #5383

Closed
5 of 6 tasks
ajssd opened this issue Jan 21, 2022 · 0 comments
Closed
5 of 6 tasks

Comments

@ajssd
Copy link

ajssd commented Jan 21, 2022

Check that this is really a bug

  • I confirm

Reproduction link

https://jsfiddle.net/asefkow/2hxtguac/

Bug description

The "next" button is rendered with

<div class="swiper-button-next" tabindex="-1" role="button" aria-label="Next slide" aria-controls="swiper-wrapper-28cfe37a4e751be2" aria-disabled="true"></div>

which is incorrect. The aria-disabled="true" suggests a disabled button, when in fact the button is actually enabled.

Expected Behavior

Either aria-disabled="false" or no attribute at all.

Actual Behavior

aria-disabled="true"

Swiper version

7.4.1

Platform/Target and Browser Versions

macIS

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
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

No branches or pull requests

1 participant