Carousel indicators for Bootstrap 5 don't use correct HTML

Created on 20 June 2024, 5 months ago
Updated 5 July 2024, 5 months ago

Problem/Motivation

I'm currently using Views Bootstrap 5.5.0-beta4 with Drupal core 10.3.0-rc1. I noticed the Twig template for the carousel format is using an <ol> to wrap the indicators, and <li>s for each indicator.

The Bootstrap 5 documentation for the carousel component uses a <div> with <button>s inside for the indicators.

Steps to reproduce

  1. Create a view with the Bootstrap Carousel format. Turn on "Show Indicators".
  2. Look at the view with a Bootstrap 5 based theme enabled. There will be numbers below the indicators (one per indicator).

Proposed resolution

Change the elements accordingly and provide an aria-label attribute for each button.

πŸ› Bug report
Status

Fixed

Version

5.5

Component

Carousel

Created by

πŸ‡ΊπŸ‡ΈUnited States kwiseman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024