aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

accessibilityAutoItemTitles does not display Carousel slide titles

Open HitmanInWis opened this issue 1 year ago • 0 comments

Bug is present as of version: 2.24.7-SNAPSHOT

The following line in carousel.html attempts to set the aria-label for a slide to the panel title.

             aria-label="${(carousel.accessibilityAutoItemTitles && item.title) || 'Slide {0} of {1}' @ format=[itemList.count, carousel.items.size], i18n}"

However, if item.title does not have replacement tokens {0} and {1} the @ format command fails and returns an empty string, resulting in an empty aria-label rather than the actual slide title.

HitmanInWis avatar May 06 '24 21:05 HitmanInWis