Skip to content

Fix duplicate global IDs on carousel items#2459

Draft
clxmpfeffermann wants to merge 1 commit intoshoelace-style:nextfrom
clxmpfeffermann:carousel-dup-ids
Draft

Fix duplicate global IDs on carousel items#2459
clxmpfeffermann wants to merge 1 commit intoshoelace-style:nextfrom
clxmpfeffermann:carousel-dup-ids

Conversation

@clxmpfeffermann
Copy link

fixes #2458

Fixes duplicate global IDs on sl-carousel-item by prefixing the IDs with a tag that is unique per instance.

I removed the IDs and aria-attributes from cloned slides. Further, I thought it was appropriate to make them permanently inert/aria-hidden because they are never interacted with and only exist for a smooth visual transition.

Potentially breaking:

  1. Breaks consumers who relied on ID names slide-1, slide-2, etc.
  2. Breaks consumers who relied on cloned slides becoming non-inert.

@vercel
Copy link

vercel bot commented Jun 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview Jun 10, 2025 0:19am

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.

Duplicate global IDs in SlCarousel

1 participant