Skip to content

fix: remove redundant aria-disabled=false from swiper nav button#8176

Merged
nolimits4web merged 2 commits intonolimits4web:masterfrom
Dani-Sahni:fix/aria-disabled-false
Apr 7, 2026
Merged

fix: remove redundant aria-disabled=false from swiper nav button#8176
nolimits4web merged 2 commits intonolimits4web:masterfrom
Dani-Sahni:fix/aria-disabled-false

Conversation

@Dani-Sahni
Copy link
Copy Markdown
Contributor

@Dani-Sahni Dani-Sahni commented Apr 7, 2026

Fixes #7975

Problem

Two invalid ARIA attributes on the swiper nav buttons were flagged by accessibility checkers (e.g. Eye-Able, axe-core):

  1. aria-disabled="false" is an invalid ARIA value. When a button is not disabled, the correct approach is to omit the attribute entirely.

  2. aria-controls references an ID that is only set inside the Shadow DOM. ARIA ID references do not work across Shadow DOM boundaries and are therefore invisible to assistive technologies — making the attribute misleading and ineffective.

Changes

  • Removed aria-disabled="false" from next/prev buttons — the buttons remain fully functional and accessible without it.
  • Removed aria-controls from next/prev buttons — aria-label already communicates the button's purpose clearly.

@nolimits4web nolimits4web merged commit 6730929 into nolimits4web:master Apr 7, 2026
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.

Accessibility conflict: Swiper adds redundant aria-disabled attribute alongside disabled attribute on navigation buttons

2 participants