aem-core-wcm-components
aem-core-wcm-components copied to clipboard
accessibilityAutoItemTitles does not display Carousel slide titles
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.