Created on 9 May 2024, 6 months ago
Updated 23 August 2024, 3 months ago

Can anyone give advice on how to embed the accordions within accordions like on the demo page? https://designsystem.digital.gov/components/accordion/. I have a need to have multi level embedded accordions. If I figure it out I'll share my code. Thanks

πŸ’¬ Support request
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States primus

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

Comments & Activities

  • Issue created by @primus
  • Status changed to Postponed: needs info 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Would probably have to create a 2nd accordion field and nest them.

  • πŸ‡ΊπŸ‡ΈUnited States primus

    I'm not having any luck with getting this to work. Any thoughts on how it might work would be appreciated. I wasn't able to nest a 2nd accordion field.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Not sure I follow.

    Did you check the accordion component by chance?

  • Status changed to Needs review 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States scott_earnest

    Greetings @primus-

    You should be able to update the "Uswds accordion section" paragraph type to allow "Text Field" and "USWDS Accordion". This will allow you to nest the accordions:

    /admin/structure/paragraphs_type/uswds_accordion_section/fields/paragraph.uswds_accordion_section.field_accordion_section_body

Production build 0.71.5 2024