2.11.1
What’s Changed
Fixed
- Callout labels ignored the colour the block was given, and every one of them failed contrast.
.acf-callout-labelcarried a hardcodedcolor:#d4a600that never varied with the block’s owncallout_bgColororcallout_textColor, and four style variations replaced it with literals that were just as uncoupled. Across 501 labelled callouts on 272 posts, 500 of the 500 evaluable labels came in under 4.5:1 — none passed. The mustard sat at 2.17:1 on#f0fdf4(172 blocks) and 2.09:1 on#eff6ff(131), and a “Warning” label on#f8d7dabottomed out at 1.70:1. The label now resolves tocurrentColor, inheriting the callout’s own text colour, which authors already pick to pair with the background: 415 of 415 blocks carrying explicit colours now pass, and the 85 with none fall back to the theme’s own--acfb-texton--acfb-bgpair. The Dark and Dashed Dark variants keep their--acfb-starlabel, which is token-based and already correct on a dark ground. - Custom
border-colorcould not override a variation’s border. Highlight, Dashed Light, and Dashed Dark setborderas a shorthand, so a block supplying onlycallout_borderColorkept the variation’s width and style and changed nothing but the hue — a Highlight callout with custom colours rendered a 3px dashed border it never asked for, on top of the 1px solid the base rule intended. The three variations now setborder-width,border-style, andborder-coloras longhands so a per-block colour lands without dragging the rest of the shorthand with it. - Highlight and Testimonial opted out of dark mode. Both hardcoded their surface (
#f0fff0and#fdf6e3) instead of deriving it from--acfb-bg, so they stayed bright on a dark page while every other callout followed the theme. Both now tint the token withcolor-mix(), which reproduces the previous light-mode surface to within a couple of values and yields a correspondingly dark tint in dark mode. Highlight’s→list marker keeps its green.
Notes
- Callout registers
styleas an array inblock.json, so WordPress inlines the bytes rather than linking a URL. There is no asset URL to bust here; page caches need a purge for the change to appear on already-cached HTML.
Commits
- 2.11.1: callout labels inherit the block’s text color (
543e820)
Stats
- Commits: 1
- Changes: 8 files changed, 25 insertions(+), 15 deletions(-)
Plugin Info
- Blocks included: 29
- Requires WordPress: 6.0+
- Requires PHP: 7.4+
- Requires: ACF Pro 6.0+ or Secure Custom Fields
Installation
- Download
acf-blocks-plugin-*.zipfrom the assets below - Go to Plugins → Add New → Upload Plugin in WordPress admin
- Upload the zip file and activate
