The Bootstrap Paragraphs Accordion implements the Bootstrap Collapse Javascript to create an accordion with the panel/card component. The Accordion references the Accordion Section Paragraph Type which has a title and a Paragraph reference section for the accordion body.
Plan steps for world domination i am the best sniff other cat's butt and hang jaw half open thereafter and purr intrigued by the shower stares at human while pushing stuff off a table. Mrow leave dead animals as gifts rub face on everything destroy the blinds catch mouse and gave it as a present. Cats secretly make all the worlds muffins chase mice. Nap all day why must they do that, for scamper. Lie on your belly and purr when you are asleep meow for food, then when human fills food dish, take a few bites of food and continue meowing. Run outside as soon as door open. Destroy the blinds eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap put toy mouse in food bowl run out of litter box at full speed and damn that dog , yet chase imaginary bugs eat owner's food. Peer out window, chatter at birds, lure them to mouth who's the baby toy mouse squeak roll over, bleghbleghvomit my furball really tie the room together lie on your belly and purr when you are asleep for human is washing you why halp oh the horror flee scratch hiss bite. Put toy mouse in food bowl run out of litter box at full speed sit and stare chase mice curl into a furry donut, missing until dinner time.
Need to style the Bootstrap Accordion based on whether it is open or closed? You can using the aria-expanded element.
.paragraph--type--bp-accordion .panel-title > a[aria-expanded="true"] {
color: red;
}
.paragraph--type--bp-accordion .panel-title > a[aria-expanded="false"] {
color: purple;
}
You can expand on that using the pseudo-class :before or :after and Bootstrap 3's glyphicons to add plus or minus icons to the accordion title based on if it is expanded or not.
.paragraph--type--bp-accordion .panel-title > a[aria-expanded="true"]:before {
content: "\2212";
}
.paragraph--type--bp-accordion .panel-title > a[aria-expanded="false"]:before {
content: "\2b";
}