[bs4] Accordion not working

Created on 6 April 2019, over 5 years ago
Updated 26 February 2023, almost 2 years ago

Accordions not working with the barrio SASS Bootstrap Starter Kit Subtheme 8.x-1.7 (bootstrap 4 theme).
Stept to reproduce:
1-Create a brain new site with the barrio SASS Bootstrap Starter Kit Subtheme
2-enable paragraphs_bootstrap
3-Change body field of the page content type into a Entity reference revisions field
4-Add an accordion with 2 heading

Result: the accordions does not collapse or expand

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium DuneBL

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇯🇴Jordan amneh.shawish Amman - Jordan

    I was facing this issue in [bs4].
    New Boostrap 4/5, you should update paragraph--bp-accordion.html.twig.
    The attributes are data-bs-toggle, data-bs-parent, and data-bs-target, pay attention to the -bs- in the middle.

  • First commit to issue fork.
  • 🇨🇦Canada droddis

    Based on a quick test adding the -bs- to the attributes mentioned seems to have solved the issue.

Production build 0.71.5 2024