woman-about-impact

AAG Accordion

Specialized Treatment programs

Developer Notes

  • Component resides inside EH Composites tab in the Toolbox by the name EH Accordion.
  • The accordion component is built using a parent-child model where the parent has the heading and body of the Accordion and child(ren) are the list of collapsible items.
  • Applicable fields of Accordion parent item: 
    • Heading :  RTE field to add heading.
    • Body : RTE field to body.
  • Applicable fields of Accordion child item: 
    • Heading :  RTE field to add heading of the accordion child item, displayed when the item is collapsed
    • Content : RTE field to add body/description of the accordion child item, displayed when the item is expanded.
  • Rendering Parameters(in Accordion Control section) :
    • CanToggle - select to allow toggling of sections. Selected, by default.
  • As accordions have full-width background, they are to be placed directly inside main placeholder. Please do not add it to any section-container.
  • Accordion has a paint-bucket class-"Small Width Accordion", which reduces the spacing around component. This paint-bucket is primarily used on "Admissions" page, where accordion doesn't span full-width of screen
  • In order to add Accent variation on component, one can select "Accent" from paint-bucket on Accordion.
  • An example of the component is shown HERE

Content Author Notes

1. Open up EE and click the "Add Component" icon at the top

2. Click "Add Here" where you would like the Accordion to be placed. Select EH Accordion under EH Composites 

3. Create a data source

4. The accordion will have two items automatically added underneath the accordion. To edit the main heading, click the placeholder text and update the field. 

5. Author will be able to update body text if needed. You can manage this in EE or click the pencil icon to open up the Rich Text Editor. 

To manage the individual items: 

6. Click the heading to update the item heading. It will default to an H3 heading style.

7. You can open up the accordion item by click the white space outside of the placeholder text. Accordion should extend and you will see placeholder text for the body. This is managed by an RTE field. 

8. To add items, ensure design mode is enable in the view tab. Click an accordion item and you will see a dialog box populate with multiple icons including an addition icon, delete, move icons. Once you click the add icon, a pop up window will populate and you will be able to create the data source. 

Paint Bucket Settings: 

Paint Bucket settings control background color, width and accent variant.

1. To open up paint bucket settings, ensure the design view is enabled in the view tab. Click the accordion component. 

2. Check boxes that are applicable 

3. Save and publish changes. 

Requirements

AAG Accordion:

  • The accordion will be used primarily on the interior pages and allows you to stack
    a list of collapsible sections.
  • The Accordion should contain the following elements:
    • Heading RTE (wrap heading in H2)
    • Body (RTE)
    • Accordion Items:
      • RTE (ability to add images) see AAG RTE
  • The background is fixed not editable by CA.
  • The CA should be able add unlimited list items.
  • Can toggle should be enabled by default. 
  • The image and grey background  will be added via RTE snippet. A separate
    component is not needed (Meet the Team)
  • Upon page load the Accordion should be in a closed state. 
  • The accordion icon should change to an open/close state. +/-
  • Upon hover, accordion item changes to AAG orange.
  • When user opens one accordion item the other items remained closed. Opening one closes the other.
  • Styling followed live site and AAG Brand Guidelines
  • This component must follow accessibility standards for alt text, and keyboard navigation. 

Mobile:

  • Content is stacked.