Closed jpbyrne closed 3 years ago
Changed this to a proposal instead of a bug report since this feature is specifically unsupported by our system.
@aagonzales I know when nested accordions have come up in the past we've decided against support for this feature. With a Carbon Treeview coming soon I assume that's still the case. I don't actually know if a Vanilla Treeview implementation is being worked on in parallel to the React though.
@jpbyrne Can you share a screenshot of design that uses the nested accordion for context please.
Sure thing @aagonzales.
In SPM we have a UI templating system called UIM which our customers use to build custom interfaces. We're currently in the process of migrating the output of UIM to Carbon components.
Customers use something called a UIM CLUSTER
element to create multi-column layouts. The default variant of Cluster comes with a collapsible header. We were planning to reimplement our Cluster using Carbon grid and Accordion components.
However, as it's possible to nest Cluster elements one inside another, Accordions would also need to support this capability for use to use them in this way.
Going to close this one out for inactivity. This is really challenging for user's content discoverability and accessibility. We recommend flattening your information architecture as much as possible.
fix[accordion]: nested Accordions not working as expected
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Vanilla Carbon Accordions are not functional when placed inside of another Accordion. Nested Accordions do not expand and collapse.
Yes. Accordion.
That Carbon Accordions can be placed one within another and function normally.
Chromium Edge (but applicable to all!)
v10.24.0 (latest)
IBM Social Program Management
Steps to reproduce the issue
carbon/packages/components/src/components/accordion/accordion.hbs
to include one Accordion component within another.yarn dev
.http://localhost:3000/demo/accordion
.Additional information