Skip to content

Swiper Pause Button #7640

Open
Open
@hein-obox

Description

@hein-obox

Clear and concise description of the problem

As a website developer I expect my base slider to support accessibility standards, one of which is the pause button. See https://www.w3.org/WAI/ARIA/apg/patterns/carousel/examples/carousel-1-prev-next/.

Currently SwiperJS doesn't include such a button in the default version, and causes accessibility problems by that.

Suggested solution

We suggest to add the pause button as a default option for the SwiperJS sliders.

Steve Jones from Equalize Digital, has created a gist for how the button could be included: https://gist.github.com/SteveJonesDev/87b253a2c7109c47849fa3f0370d42a1.

Alternative

I am not sure if these buttons should always be visible for all users.

Possibly it button could only become visible, when e.g. the tab key is used on the page.

Additional context

No response

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.

Would you like to open a PR for this feature?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions