diff --git a/templates/views-bootstrap-carousel.html.twig b/templates/views-bootstrap-carousel.html.twig index 99d7fbe293d864ba8efc02385cdd182a65899eac..d3730fdddb1083ca01a4e964ea4a34e872703b4b 100644 --- a/templates/views-bootstrap-carousel.html.twig +++ b/templates/views-bootstrap-carousel.html.twig @@ -29,14 +29,14 @@ {# Carousel indicators #} {% if indicators %} - <ol class="carousel-indicators"> + <div class="carousel-indicators"> {% for key, row in rows %} {% if key % columns == 0 %} {% set indicator_classes = [loop.first ? 'active'] %} - <li class="{{ indicator_classes|join(' ') }}" data-bs-target="#{{ id }}" data-bs-slide-to="{{ key/columns }}"></li> + <button class="{{ indicator_classes|join(' ') }}" data-bs-target="#{{ id }}" data-bs-slide-to="{{ key/columns }}" aria-label="{{ 'Slide'|t ~ ' ' ~ loop.index }}"></button> {% endif %} {% endfor %} - </ol> + </div> {% endif %} {# Carousel rows #}