[feat] Accordion component should support single selectable section behavior by default #207
Labels
good first issue
Good for newcomers
type: breaking
This introduces breaking changes and will require a major version increase
type: feature
New feature or request
Does your feature request relate to a specific USWDS feature?
This is an enhancement to the existing Accordion component https://designsystem.digital.gov/components/accordion/. The current implementation defaults to multiselectable behavior where multiple sections can be open at once. However in the USWDS library the default behavior is expanding one section will collapse all others and multiselectable is opt in.
Is your feature request related to a problem? Please describe.
No it is just another component feature of the current spec that someone may want.
Describe the solution you'd like
To align with the behavior of USWDS make multiselectable an attribute/prop set to false by default.
Additional context
From a Slack conversation, the original implementation was made for a project that only needed the multiselectable behavior
The text was updated successfully, but these errors were encountered: