This change affects all implementations of the accordions component.
The previous accordion implementation reused CSS classes associated with the card component, such as "card" and "card-body". This created a dependency between the styling of accordions and cards, meaning changes made to one component could potentially affect the other.
<div class="accordion ">
<div class="card ">
<div id="headingaccOneitem1" class="card-header">
<div class="mb-0">
<button ...>
Accordion item title one
</button>
</div>
</div>
<div id="collapseaccOneitem1" class="collapse " ...>
<div class="card-body">
...
</div>
</div>
</div>
</div>
<div class="ds_accordion">
...
<div class="ds_accordion-content">
...
</div>
</div>
This change separates the accordion's markup and styling from the Card component.
The previous accordion implementation reused generic card and card-body classes. This created a dependency between the styling of accordions and cards, meaning changes made to one component could potentially affect the other.
Using accordion-specific classes makes the component more self-contained and reduces this dependency, making the Design System easier to maintain and evolve.
Benefits include:
After updating your Design System packages, we recommend reviewing accordion usage in your application.
Areas worth checking:
This change updates the accordion markup and related CSS to use accordion-specific classes, separating the component from the styling used by Cards.
No changes to the expected accordion functionality are intended, but consuming applications with custom CSS or JavaScript targeting the previous accordion classes should review their implementation.
Design System internal reference: 103823