design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Should we make the accordion more flexible?

Open gfellerph opened this issue 5 months ago • 1 comments

The footer and the anchor navigation require accordion functionality, but only on certain breakpoints. Can we add a feature to the accordion that allows to specify on what breakpoints to enable/disable accordion behaviour and otherwise just show each section and corresponding header as if nothing ever happened to it?

New features

  • disable-on: list of named breakpoints where all accordion semantics and styles should be disabled
  • parts: if not already done, expose parts to make styling more flexible from surrounding context

This functionality would enable us to simplify the footer and anchor navigation implementation and might be handy for some projects.

Image

Image

gfellerph avatar May 02 '25 13:05 gfellerph