Guardrail Blocks
Blocks where accessibility is enforced by design: WCAG-safe color contrast and an unbreakable heading hierarchy — no QA cleanup pass.
Utiliser avec prudence
Guardrail Blocks works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
- Testé avec le dernier WordPress (7.1)
- Petite base d'utilisateurs (<10 installations actives)
- Très peu de critiques jusqu'à présent
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Guardrail Blocks stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| accessibilité | >100 |
| blocs | >100 |
| contrast | >100 |
| headings | >100 |
| wcag | >100 |
About Guardrail Blocks
From the official readme · v0.1.2Description
Most accessibility failures on WordPress sites are authoring failures: a brand color that doesn’t meet WCAG contrast, a heading hierarchy scrambled by reordering, an accordion built from divs with no keyboard support. They look fine in the editor and fail the audit later.
Guardrail Blocks takes a different approach: instead of offering accessible options, its blocks make the failure impossible to author — and re-verify everything on every page view.
The guarantees
- WCAG-safe color contrast — Button backgrounds come only from your theme’s palette (plus any custom colors added in Global Styles), and the most readable text color is chosen automatically (the live ratio is shown in the sidebar, e.g. “Contrast 8.36:1 — AA ✓”). The pairing is re-validated server-side on every page view against your theme’s current palette, so switching themes or changing brand colors can never leave a failing button behind.
- Unbreakable heading hierarchy — There is no heading level control anywhere. An Accessible Heading derives its level (H2–H6) from how Accessible Sections are nested, and re-derives it when you reorder, nest, or un-nest — the document outline stays valid by construction. Card titles and accordion headers participate too, always one level below their section’s heading.
- Correct interactive semantics — The Accordion ships the full WAI-ARIA disclosure pattern: real buttons inside correctly-leveled headings,
aria-expanded/aria-controlswiring, Enter/Space toggling, arrow-key navigation between headers, and content that stays reachable without JavaScript. - Performance-correct media — The Media Figure renders through core’s responsive-image pipeline with explicit dimensions (no layout shift),
srcset/sizes, a hero toggle forfetchpriority="high"(better LCP) vs. lazy loading, and alt text enforcement with editor warnings.
The blocks
Accessible Section, Accessible Heading, Accessible Button, Card + Card Grid, Accessible Accordion, Notice (info/success/warning/error with correct ARIA roles), Media Figure, and a Table of Contents that is generated from the page’s real outline on every view — it can never go stale.
Safety nets
- The Outline Checker panel (in the page sidebar) watches the whole document — including core Heading blocks — and flags skipped levels and extra H1s with one-click block selection.
- Everything inherits your theme’s colors, spacing, and typography via
theme.json. Nothing fights your design. - The plugin makes zero external requests and collects no data.
Source code & development
The compiled block scripts in build/ are generated with @wordpress/scripts (webpack). The complete, human-readable source code is included with this plugin in the src/ directory (TypeScript and SCSS, one folder per block). To rebuild build/ from it: npm install && npm run build (Node 22; package.json and tsconfig.json are included).
Development happens publicly at https://github.com/breonwilliams/guardrail-blocks, which also carries the full test suite (Jest, PHPUnit, Playwright) and CI.
Journal de modifications
Accordion content now works without JavaScript, plus Table of Contents link, Button palette, and responsive image fixes.
0.1.2
- Fixed: Accordion content is now reachable without JavaScript, as documented. WordPress’s server-side processing of Interactivity API directives was rendering every panel hidden; panels are now open in the page markup and collapse when the script loads, without a layout shift. Collapsed panels can be found with the browser’s find-in-page where supported, which opens them.
- Fixed: Table of Contents links now point to the right heading when several posts render on one page (for example a blog index that shows full posts).
- Fixed: Table of Contents now links core Heading blocks whose HTML anchor was saved by an earlier WordPress version.
- Fixed: the Accessible Button’s color picker kept only Global Styles custom colors once any were added, hiding the theme palette. Theme and custom colors are now offered together, and when a custom color overrides a theme color, that is the color the contrast check uses.
- Improved: Media Figure’s
sizesattribute now follows the block’s alignment and the theme’s content/wide widths, so wide and full-width images no longer load undersized files. - Editor: the Accordion Item header and Media Figure no longer trigger an accessibility warning or a deprecation notice in the editor.
- Testé jusqu'à WordPress 7.1.
0.1.1
- Heading levels are now also derived from the block tree’s actual nesting on every render, so a stored level can never produce a wrong heading — the outline guarantee is enforced server-side end to end.
- New theme-friendly design controls via core block supports: border on Card and Accordion; border radius on Button and Media Figure (rounds the image); padding on Accordion; font size on Accordion, Notice, and Table of Contents; margin on Accessible Heading.
- Fixed: the Button’s border radius now previews live in the editor with themes that style
wp-element-button(Blocksy and similar).
0.1.0
- Version initiale.
- Blocks: Accessible Section, Accessible Heading, Accessible Button, Card + Card Grid, Accessible Accordion, Notice, Media Figure, Table of Contents.
- Contrast engine (editor + server) with support for hex, rgb(), and var()-fallback theme palettes.
- Heading levels derived from section nesting with self-correction on reorder; Outline Checker panel.
- Accordion built on the WordPress Interactivity API with the WAI-ARIA disclosure pattern.
- Five patterns including the Starter Brochure Page.
Captures d'écran
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Guardrail Blocks alternatives
Tous les plugins d'accessibilité →FAQ
Guardrail Blocks: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Guardrail Blocks free?
Yes. Guardrail Blocks is free to download and use from the official WordPress.org plugin directory.
Is Guardrail Blocks safe to use in 2026?
Guardrail Blocks works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
How many websites use Guardrail Blocks?
Guardrail Blocks is active on <10 WordPress websites and has been downloaded 432 times since it launched in July 2026. It was downloaded 83 times in the last 30 days.
Does Guardrail Blocks work with WordPress 7.1?
Yes. The developer has tested Guardrail Blocks up to WordPress 7.1.5, the latest release. It requires WordPress 6.9 or newer.
What PHP version does Guardrail Blocks need?
Guardrail Blocks requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Guardrail Blocks last updated?
The latest version, 0.1.2, was released on October 2, 2026 (2 months ago).
Who makes Guardrail Blocks?
Guardrail Blocks is developed and maintained by BreonWilliams.
What are the best alternatives to Guardrail Blocks?
The most popular alternatives to Guardrail Blocks are Web Accessibility (formally… (500K+ installs), Auto Image Attributes From… (100K+ installs) and Accessibility by UserWay (80K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit
