Configuration dropdowns do not open

Created on 9 February 2023, over 1 year ago
Updated 5 April 2024, 3 months ago

Problem/Motivation

Dropdowns do not open in a block or section configuration window.

Steps to reproduce

1. Go to the configuration menu of any block or section using uswds_blb_configuration.
2. Try to open any dropdown.
3. Nothing happens

Attached is a patch that simply removes the 'usa-accordion__button' class from details--bs.html.twig.

This fixes the issue for me, but long term should be addressed in a different way.

๐Ÿ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @mdranove
  • Status changed to Postponed: needs info over 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Thanks for reporting!

    Currently forking the bootstrap modules into a 2.0.x branch here so hopefully things like this don't popup.

    Curious what uswds theme are using?

  • Hi there,

    uswds 2.1-rc1
    drupal 9.4.11

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Yea heard this doesn't work well with uswds.

    I mainly have tested on uswds_base

  • Status changed to Closed: outdated 4 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Would recommend using uswds_base. Possible uswds doesn't have certain twig templates.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States rex.barkdoll

    Hi all,
    I'm on Drupal 10, using USWDS theme and this module.
    I've created a better working patch that removes the class. (attached)

    Basically, it's updating the summary element in the details--bs.html.twig file
    from this: {{ title }}
    to this: {{ title }}

  • Status changed to Needs review 3 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Will need to see it doesnโ€™t break uswds base

  • Status changed to Needs work 3 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    Actually if removing a class should just find where itโ€™s being added in the code and not do it.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States rex.barkdoll

    I agree, I just couldn't find where else in this module's codebase that the class was being added.
    The other option is to stop using <details> elements and start using USWDS accordions instead

Production build 0.69.0 2024