Description
Design, implement and document an additive vf-details--accordion variant that groups multiple vf-details instances while keeping vf-details as the underlying disclosure component.
So that designers and devs don't have to keep making it themselves.
Background and rationale
The 'vf-details' review recommends retaining vf-details as the Visual Framework's primary disclosure component rather than introducing a separate vf-accordion component.
Teams already combine vf-details instances to create accordion-like groups. A supported variant would make that pattern more consistent for design and development while avoiding component duplication and class-name migration.
The grouped variant must still follow the disclosure guidance: content should be supplementary, concise or mid-form, closed by default and limited to a small number of rows. The report recommends no more than five stacked rows before content and information architecture are reconsidered.
User story
As a designer or developer, I need a supported grouped presentation of vf-details so that I can create a consistent short disclosure group without inventing a local accordion component.
Proposed work
- Define
vf-details--accordion as an additive grouped variant, not a replacement base component.
- Use individual
vf-details instances as the repeated molecule.
- Provide an approved stacking pattern using
vf-stack and/or vf-grid.
- Define visual and interaction states for closed and open rows.
- Keep native
<details> and <summary> behaviour for the core interaction.
- Support the documented content-size and row-count guidance.
- Decide whether grouped rows allow multiple sections to remain open or provide an additional single-open option.
- Update code examples, component documentation and design assets.
Acceptance criteria
Out of scope
- Migrating every existing accordion-like implementation.
- Adding expand-all or collapse-all controls without separate user evidence.
- Supporting large forms, primary actions, deep nesting or specialist API documentation.
Description
Design, implement and document an additive
vf-details--accordionvariant that groups multiplevf-detailsinstances while keepingvf-detailsas the underlying disclosure component.So that designers and devs don't have to keep making it themselves.
Background and rationale
The 'vf-details' review recommends retaining
vf-detailsas the Visual Framework's primary disclosure component rather than introducing a separatevf-accordioncomponent.Teams already combine
vf-detailsinstances to create accordion-like groups. A supported variant would make that pattern more consistent for design and development while avoiding component duplication and class-name migration.The grouped variant must still follow the disclosure guidance: content should be supplementary, concise or mid-form, closed by default and limited to a small number of rows. The report recommends no more than five stacked rows before content and information architecture are reconsidered.
User story
As a designer or developer, I need a supported grouped presentation of
vf-detailsso that I can create a consistent short disclosure group without inventing a local accordion component.Proposed work
vf-details--accordionas an additive grouped variant, not a replacement base component.vf-detailsinstances as the repeated molecule.vf-stackand/orvf-grid.<details>and<summary>behaviour for the core interaction.Acceptance criteria
vf-detailsas its base component and does not introduce a separatevf-accordionpackage.<details>and<summary>semantics for the core disclosure interaction.vf-detailsimplementations are visually and functionally unchanged unless they opt into the variant.Out of scope