Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/danielroe/ripple-framework. Ripple is the presentation layer for building websites on the DPC Single Digital Presence platform.
···19192020Always test accordions with users first. Depending on what the user needs, hiding content could present problems.
21212222+::DocsExample
2323+---
2424+id: core-containers-accordion--accordion
2525+---
2626+::
2727+2228### When and how to use
2329- Fill the entire width of the content area.
2430- Embed into the body content area of any landing page.
···2733- Use to conceal content that may only apply to specific users who can choose to show or hide content.
2834- Make sure accordion headings are descriptive and succinct.
29353030-###
3131-- Never use a single accordion.
3232-- Avoid put all page content into accordions.
3636+### When and how not to use
3737+- Never use a single accordion.
3838+- Avoid putting all page content into accordions.
3339- Don't use accordions for important information all users need to read.
3440- Putting accordions in accordions can confuse the user.
3541- Don't use an accordion if doing so will slow the page load time.
3642- Don't disable sections.
4343+4444+### Collapse all/Expand all
4545+Being able to collapse or expand all lets users open or close all accordions with one click. This reduces the amount of clicks required to reach their content.
4646+4747+Don't use this feature to help users find information. Expanding all accordions at once could defeat the purpose of having them. If a user has to do this, consider more descriptive titles.
4848+4949+The other option is to remove the accordions and display the content without them.
5050+5151+---
5252+5353+## Variants
5454+The accordion component has two variants:
5555+- Default.
5656+- Numbered.
5757+5858+### Default
5959+6060+::DocsExample
6161+---
6262+id: core-containers-accordion--accordion
6363+---
6464+::
6565+6666+### Numbered
6767+Use the 'numbered' variant when it is important the content is read in sequential order.
6868+6969+::DocsExample
7070+---
7171+id: core-containers-accordion--accordion&args=numbered:true
7272+---
7373+::
7474+7575+---
7676+7777+## Theming
7878+Accordions use colour to:
7979+- represent interactions such as hover and active states
8080+- give prominence to the active displayed content section.
8181+8282+::DocsThemeChooser
8383+ ::DocsExample
8484+ ---
8585+ id: core-containers-accordion--accordion
8686+ ---
8787+ ::
8888+::
8989+9090+To create your own theme, see theming guidance for designers or theming guidance for developers.