Expandable sections

(AKA Expand-Collapse, Collapsible panels)

Expandable sections are expandable content areas which are useful in cases where a lot of information must be accommodated in limited space, thereby reducing clutter and allowing you focus on the primary task. Typically the information to be accommodated can be separated into various sections and/or sub-sections, or topics.

General example

data-variant=info
Expandable sections should not be confused with the 'Progressive Disclosure checkbox' control.

Appearance and behavior

Required fields should not be located within a collapsed section, as this increases the chance of error for the user. If a field within a collapsed section is made a required field based on a User interaction, that section should be automatically expanded to reveal this requirement to the user. As a best practice, the first expandable section should be expanded by default. For pages with several expandable sections it is recommended to locate all required fields in a section that cannot be collapsed above the expandable sections.

Position and dimensions

Specs

Visual appearance

Simple expandable section

Nested section

Functional behavior

Variations

  1. Simple – section that contains a single level of expansion in a section (no nested expandable sub-sections).

    Simple section

  2. Nested – section that contains one or more expandable sub-sections.

    Nested section

  3. Single expandable – section that contains only one expandable section; usually used to hide additional information.

    Single expandable section