Overview
The Accordion Block offers users the ability to create an element with collapsible sections on their pages.
| Github | https://github.com/bigbite/block-accordion |
| Notion | https://www.notion.so/bigbite/Accordion-Block-9321d34cb05b411a8016024591f220d9 |
| Product Owner | Chris Ferguson |
| Min. Version | 5.8> (Not tested in prior versions) |
Features
- The Accordion Items will accept any block within them
- Keyboard navigation
- Markup valid to WCAG 2.1 standard
Options
General
- “Heading Settings”: Sets the HTML element to be used for the Tab Title, to allow editors to achieve semantic markup.
- “Hide Toggle Icons”: Show/hide the toggle icon
Accordion Item specific options:
- “Expanded on page load”: Accordion Item should already be expanded when page is loaded (default is for them to be closed).
Layout
- “Move toggles to left”: Displays the Toggle Icon on Left of the text in the Tab Title
Styling
- “Choose Toggle Icon”: Allows the Toggle Icon to be set to one of a number of default options.
- There are also a number of other styling options available including:
- Set Icon colour
- Set colours of text and background in:
- Tab Title (Summary)
- Tab Panel (Details)
- Set border colour and width of Tab Title (Summary)
How to
The block is installed via a Plugin which you can include using Composer. To do so, ensure the following is included in your composer.json file:
{
"repositories": [
{
"type": "vcs",
"url": "git@github.com:bigbite/block-accordion.git"
}
],
"require": {
"bigbite/block-accordion": {{RELEASE_NO}}
},
"extra": {
"installer-paths": {
"plugins/{$name}/": [
"type:wordpress-plugin"
]
}
}
}
To report a Bug:
- Visit https://github.com/bigbite/block-accordion/issues
- Create a new Issue
- Add a screenshot/video of the issue you are experiencing
- Add a description of the issue you are experiencing
- Add the label
bug

To suggest a feature, either:
- Contact the Product Owner
OR
- Visit https://github.com/bigbite/block-accordion/issues
- Create a new Issue
- Write your suggestion in as much as detail as possible – preferably detailing the problem you are trying to solve.
- Add the label
enhancement

Technical Details
There are currently no hooks or filters provided by this block.