Skip to content

Support boolean as a11y type#8157

Merged
nolimits4web merged 1 commit intonolimits4web:masterfrom
farseekers:a11y
Feb 13, 2026
Merged

Support boolean as a11y type#8157
nolimits4web merged 1 commit intonolimits4web:masterfrom
farseekers:a11y

Conversation

@farseekers
Copy link
Copy Markdown
Contributor

The a11y documentation says that it accepts a boolean,

https://swiperjs.com/swiper-api#param-a11y

Object with a11y parameters or boolean true to enable with default settings.

but the type definition does not support this.

a11y?: A11yOptions;

This PR adds it, mirroring the behaviour of autoplay

* Object with autoplay parameters or boolean `true` to enable with default settings
*
* @example
* ```js
* const swiper = new Swiper('.swiper', {
* autoplay: {
* delay: 5000,
* },
*});
* ```
*/
autoplay?: AutoplayOptions | boolean;

@farseekers farseekers changed the title Support boolean as a11y value Support boolean as a11y type Feb 1, 2026
@nolimits4web nolimits4web merged commit 6bf76d5 into nolimits4web:master Feb 13, 2026
@nolimits4web
Copy link
Copy Markdown
Owner

Merged, thank you!

@farseekers farseekers deleted the a11y branch February 15, 2026 21:40
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.

2 participants