| 开发者 | breonwilliams |
|---|---|
| 更新时间 | 2026年10月3日 03:23 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
aria-expanded/aria-controls wiring, Enter/Space toggling, arrow-key navigation between headers, and content that stays reachable without JavaScript.srcset/sizes, a hero toggle for fetchpriority="high" (better LCP) vs. lazy loading, and alt text enforcement with editor warnings.theme.json. Nothing fights your design.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.
No. It's a focused set that mixes freely with core blocks — use core paragraphs, images, and columns as usual. The Outline Checker even watches headings you author with the core Heading block.
It inherits your theme's own button styling (the same wp-element-button mechanism core's Button uses), so it always looks like a button. The contrast guarantee applies the moment you pick a palette background; the theme-default state's contrast is the theme's responsibility, exactly as with core buttons.
Yes. Palettes in the var(--name, #hex) format used by many popular themes are fully supported. A color whose value genuinely can't be resolved (for example color-mix(...)) is not offered for buttons rather than being silently unchecked, and the sidebar explains why.
That's the point: hand-picked levels are how outlines break. The level always derives from section nesting, so reordering can never skip a level or create a second H1. If you need a specific level, nest (or un-nest) the section — the outline follows the structure.
Static content (sections, cards, notices' inner content) remains as clean HTML. Dynamic blocks (headings, buttons, accordions, table of contents) stop rendering their markup but your content is preserved and reappears on reactivation — nothing is lost.
No. Zero external HTTP requests, no tracking, no accounts.
sizes attribute now follows the block's alignment and the theme's content/wide widths, so wide and full-width images no longer load undersized files.wp-element-button (Blocksy and similar).