pixelalbatross / accordion-block
Installs: 1 588
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 1
Open Issues: 0
Type:wordpress-plugin
pkg:composer/pixelalbatross/accordion-block
Requires
- php: ^7.4|^8.0
- composer-plugin-api: ^2.3
- yahnis-elsts/plugin-update-checker: ^5.5
Requires (Dev)
- phpcompatibility/php-compatibility: dev-develop as 9.99.99
- phpcompatibility/phpcompatibility-wp: *
- phpstan/phpstan: ^1.11
- pixelalbatross/coding-standards: dev-main
- szepeviktor/phpstan-wordpress: ^1.3
README
The accordion block lets users show and hide sections of content on a page.
Description
An accessible, and progressively enhanced accordion block for the WordPress block editor.
No styling is provided other than the essentials for toggling the visibility of accordion sections and working without JavaScript.
It was heavily inspired on the accordion patterns recommended by the W3C Web Accessibility Initiative (WAI) and the GOV.UK Design System team.
The icons are from Themify Icons.
Installation
Manual Installation
- Download the plugin ZIP file from the GitHub repository.
- Go to Plugins > Add New > Upload Plugin in your WordPress admin area.
- Upload the ZIP file and click Install Now.
- Activate the plugin.
Install with Composer
To include this plugin as a dependency in your Composer-managed WordPress project:
- Add the plugin to your project using the following command:
`composer require pixelalbatross/accordion-block`
- Run
composer installto install the plugin. - Activate the plugin from your WordPress admin area or using WP-CLI.
Usage
This plugin requires no configuration.
Changelog
A complete listing of all notable changes to this project are documented in CHANGELOG.md.