Accordion

Classes for the Accordeon component.

Overview

The Accordion component in VulcanUI features a hierarchical structure that mirrors the actual HTML DOM. This documentation provides a comprehensive guide to all available BEM classes for the Sidebar styling and customization.

The Sidebar component follows a strict hierarchical structure with the root container ds-sidebar__viewport containing all sub-elements. Each level serves a specific purpose and can be styled independently.

[CODE]

[IMAGEN]

Class hierarchy

The hierarchical class structure is as follows. Modifiers are in parenthesis.

 * ds-accordion (root --expanded --collapsed --draggable)
 * β”œβ”€β”€ ds-accordion__toggle (--disabled --expanded --collapsed)
 * β”œβ”€β”€ ds-accordion__content (--visible --hidden --animated)
 * β”œβ”€β”€ ds-accordion__header (--expanded --collapsed)
 * β”‚   β”œβ”€β”€ ds-accordion__header-container
 * β”‚   β”œβ”€β”€ ds-accordion__header-title
 * β”‚   β”œβ”€β”€ ds-accordion__header-subtitle
 * β”‚   β”œβ”€β”€ ds-accordion__header-details
 * β”‚   └── ds-accordion__header-actions (--visible --hidden)
 * β”œβ”€β”€ ds-accordion__chevron (--expanded --collapsed)
 * β”‚   └── ds-accordion__chevron-icon
 * β”œβ”€β”€ ds-accordion__drag
 * β”‚   β”œβ”€β”€ ds-accordion__drag-handle
 * β”‚   └── ds-accordion__drag-icon
 * └── ds-accordion__item (--active)
 *     └── ds-accordion__item-label

The below images map the classes of the Sidebar by number so when using them, you know which part to target specifically with your custom CSS stylesheet:

Accordion classes

Last updated

Was this helpful?