Описание
Accessibility is a crucial aspect of web content creation. Many organizations must adhere to strict WCAG (Web Content Accessibility Guidelines) requirements. While the Gutenberg block editor significantly enhances content management, it still allows the publication of content that may not meet basic accessibility standards. This plugin offers site owners and content editors configurable block checks. These checks can either enforce strict accessibility error notices to prevent publishing or provide warnings in the editor while still allowing publication.
The following is a list of checks that are configurable for core blocks. Each check can be set to error (default), warning or none.
- core/button: Checks for text and link on each button
- core/heading: Configurable option allows removal of any heading level
- core/gallery: Leverages all core/image block checks
- core/image: Checks for alternative text on an image
- core/image: Adds option to confirm image as decorative element and bypass a11y check
- core/image: Checks if alternative text on an image exceeds 125 characters
- core/image: Checks if alternative text on an image matches the caption text
- core/table: Checks for a table header row on each individual table block
Getting Involved
If you would like to get involved and contribute to the development of this plugin or view it’s source code you can find more information in the plugins GitHub repo.
Скриншоты
Установка
- Upload the plugin folder to your /wp-content/plugins/ folder.
- Go to the Plugins page and activate the plugin.
Часто задаваемые вопросы
-
How do I use this plugin?
-
- Once activated head to the «Block Checks» page under the «Settings» menu
- Configure the checks to your liking
- Click «Save Changes»
These options will be automatically applied to existing blocks throughout your site and are active as you build new content.
-
How to uninstall the plugin?
-
Simply deactivate and delete the plugin.
Отзывы
Нет отзывов об этом плагине.
Участники и разработчики
«Block Accessibility Checks» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:
УчастникиПеревести «Block Accessibility Checks» на ваш язык.
Заинтересованы в разработке?
Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.
Журнал изменений
1.2.1
Fied
- Issue where heading level one was a fallback in settings
1.2.0
Added
- Condition on image block to check if more than 125 characters are used
- Condition on image block to check if alt text matches caption text
Changed
- Moved message location above block options
- Lint and format tools to handle WPCS for PHP, JS and CSS
- Added proper escaping in PHP templates
- Translation load order and plugin initialization
- Tested and bumped compatibility to WordPress 6.8
Fixed
- Lint errors related to PHP, JS and CSS
1.1.0
Changed
- Redesigned editor notice be less obtrusive, added icon to left of block
- Moved error message to InspectorControls
- Removed individual SCSS files
- Updated README and Changelog
- Updated dependencies
- Replaced heading level validation with direct heading level restrictions in the editor
- Updated settings page to allow selection of which heading levels to remove from the editor
Fixed
- Added timeout to image alt check to prevent change of focus
1.0.3
Changed
- Updated dependencies
1.0.2
Added
- Icon and banner image for public release
- Mike Corkum as contributor
1.0.1
Added
- Add check for core/button text and link
Changed
- Updated both readme files
1.0
- Plugin released.