🐞 fix: Remove ACF color picker and add gradient background support
Sync TODOs with Issues / sync_todos (push) Successful in 5s

This commit is contained in:
Keith Solomon
2026-06-13 11:12:13 -05:00
parent 3894dd0a3b
commit 94ca7e667e
3 changed files with 591 additions and 564 deletions
+33 -25
View File
@@ -1,27 +1,35 @@
{
"name": "acf/section",
"title": "Section",
"description": "Content section",
"style": [
"file:./section.css"
],
"category": "vdi-blocks",
"icon": "align-wide",
"keywords": [
"setion",
"content"
],
"acf": {
"mode": "preview",
"renderTemplate": "section.php"
},
"supports": {
"align": true,
"anchor": true,
"color": true,
"html": true,
"jsx": true,
"mode": true,
"multiple": true
}
"name": "acf/section",
"apiVersion": 3,
"title": "Section",
"description": "Content section",
"style": [
"file:./section.css"
],
"category": "vdi-blocks",
"icon": "align-wide",
"keywords": [
"setion",
"content"
],
"acf": {
"blockVersion": 3,
"mode": "preview",
"renderTemplate": "section.php"
},
"supports": {
"align": true,
"anchor": true,
"color": {
"background": true,
"gradients": true,
"__experimentalDefaultControls": {
"background": true
}
},
"html": false,
"jsx": true,
"mode": true,
"multiple": true
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ $ovlImage = get_field( 'overlay_image' );
$ovlOpacity = get_field( 'overlay_opacity' ) ? get_field( 'overlay_opacity' ) / 100 : 1;
// Set classes
$classes = 'section';
$classes = 'section relative';
if ( $contentWidth === 'full' ) {
$classes .= ' mx-break-out';