Skip to content

feat: add duration to sd-carousel #2604

@coraliefeil

Description

@coraliefeil

User Story

As a developer or editor using the Solid Design System
I want to configure the delay between autoplay transitions in the sd-carousel
So that I can adjust the timing to meet accessibility requirements and optimize readability for different content types

##Context (CMS)
During an accessibility review of the carousel with autoplay used in the Super Teaser, we identified that the current transition speed is too fast for users to comfortably read and process large content blocks. Adding configurable delay options will improve flexibility and compliance with WCAG 2.2 accessibility guidelines.

The carousel already supports a fade attribute for single-slide transitions.

Suggested Solution

Add a delay attribute to sd-carousel that accepts any numeric value (in seconds)

The attribute controls the time between autoplay transitions, not the animation duration itself.

Provide documentation with recommended delay values as examples:

Fast: 5s
Medium: 7s
Slow: 10s
Very slow: 12s

Ensure the implementation avoids hardcoded values, allowing flexibility for CMS implementations and custom use cases

Update component documentation to clarify the distinction between animation duration and transition delay

DoR

  • Item has business value
  • Item all subtasks have been estimated by the team
  • Item is clear and well-defined
  • Item dependencies have been identified

DoD

  • All subtasks have been closed

Metadata

Metadata

Assignees

Labels

A11yIdentifies tasks related to accessibility improvements identified in the A11y audit of the DSDesignneeds changes in FigmaDevelopmentneeds changes in code

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions