Accordion borders not working

Created on 1 March 2022, almost 3 years ago
Updated 8 June 2023, over 1 year ago

Problem/Motivation

Accordion items do not function properly when "Add border around items" is selected.

Steps to reproduce

  1. Add an Accordion paragraph type to a content node.
  2. Select "Add border around items."
  3. Add one or more accordion items.
  4. Save the node.
  5. All accordion items are expanded by default, show/hide functionality doesn't work, borders are not displayed.

Proposed resolution

On Line 264 of module code, change classes from 'usa-accordion-bordered' to 'usa-accordion usa-accordion--bordered'
(Add 'usa-accordion' class and use correct BEM syntax for 'bordered' modifier by adding a second dash)

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States richardb88

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.

Production build 0.71.5 2024