Accordion multiselectable option not working

Created on 6 November 2023, 8 months ago

Problem/Motivation

The option "Allow more than one item to expand at a time" has no effect.

Steps to reproduce

  1. Add an Accordion paragraph type to a content node.
  2. Select "Allow more than one item to expand at a time."
  3. Add at least two accordion items.
  4. Save the node.
  5. Try opening multiple accordions.

Proposed resolution

Add the following two lines after $variables['attributes']['aria-multiselectable'] = 'true'; (Line 259) in uswds_paragraphs.module:

$variables['attributes']['data-allow-multiple'] = TRUE;

$variables['attributes']['class'][] = 'usa-accordion--multiselectable';

πŸ› Bug report
Status

Active

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

  • Issue created by @richardb88
  • @richardb88 opened merge request.
Production build 0.69.0 2024