Skip to content
Snippets Groups Projects
Commit 35a8b78c authored by Kristin Wiseman's avatar Kristin Wiseman Committed by Shelane French
Browse files

Issue #3456057 by kwiseman: Carousel indicators for Bootstrap 5 don't use correct HTML

parent 61bbf93a
No related branches found
No related tags found
1 merge request!27Issue #3456057 carousel indicators for bootstrap 5
Pipeline #204246 passed with warnings
......@@ -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 #}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment