From 2e170726ce5eaa8a676eb318052d59da16a10bb2 Mon Sep 17 00:00:00 2001 From: mricoul Date: Wed, 18 Feb 2026 14:07:59 +0100 Subject: [PATCH 1/3] fix(style.css): centers modal on the page Updates modal margin to auto to center the modal on the page horizontally. This change improves the user experience by ensuring the modal is visually balanced and easily accessible. --- src/blockparty-modal/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockparty-modal/style.scss b/src/blockparty-modal/style.scss index 8c662b3..1d126c0 100644 --- a/src/blockparty-modal/style.scss +++ b/src/blockparty-modal/style.scss @@ -7,7 +7,7 @@ .wp-block-blockparty-modal { --wp-block-blockparty-modal-width: 100%; - --wp-block-blockparty-modal-margin: 0 !important; + --wp-block-blockparty-modal-margin: auto !important; --wp-block-blockparty-modal-padding: 0; --wp-block-blockparty-modal-border-radius: 0; --wp-block-blockparty-modal-border: 1px solid #000; From 1ae34d2b93756db347665f1de527a540152a0f08 Mon Sep 17 00:00:00 2001 From: mricoul Date: Wed, 18 Feb 2026 14:11:03 +0100 Subject: [PATCH 2/3] chore: updates plugin version to 1.0.1 Bumps the plugin version across all relevant files. This version update includes a fix for the dialog element's margin style, setting it to 'auto' by default instead of '0'. --- .plugin-data | 2 +- blockparty-modal.php | 4 ++-- package.json | 2 +- readme.txt | 5 ++++- src/blockparty-modal/block.json | 2 +- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.plugin-data b/.plugin-data index f34c623..883d19a 100644 --- a/.plugin-data +++ b/.plugin-data @@ -1,4 +1,4 @@ { - "version": "1.0.0", + "version": "1.0.1", "slug": "blockparty-modal" } diff --git a/blockparty-modal.php b/blockparty-modal.php index dbdfcb2..39edb15 100644 --- a/blockparty-modal.php +++ b/blockparty-modal.php @@ -2,7 +2,7 @@ /** * Plugin Name: Blockparty Modal * Description: Modal block for WordPress editor. - * Version: 1.0.0 + * Version: 1.0.1 * Requires at least: 6.8 * Requires PHP: 7.4 * Author: Be API Technical Team @@ -19,7 +19,7 @@ exit; // Exit if accessed directly. } -define( 'BLOCKPARTY_MODAL_VERSION', '1.0.0' ); +define( 'BLOCKPARTY_MODAL_VERSION', '1.0.1' ); define( 'BLOCKPARTY_MODAL_URL', plugin_dir_url( __FILE__ ) ); define( 'BLOCKPARTY_MODAL_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/package.json b/package.json index 116e7fc..863b883 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "blockparty-modal", - "version": "1.0.0", + "version": "1.0.1", "description": "Add a modal block to the WordPress editor.", "author": "Be API", "license": "GPL-2.0-or-later", diff --git a/readme.txt b/readme.txt index adc71b2..1a65535 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: Be API Technical Team Tags: block Tested up to: 6.8 -Stable tag: 1.0.0 +Stable tag: 1.0.1 License: GPL-2.0-or-later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -45,6 +45,9 @@ directory take precedence. For example, `/assets/screenshot-1.png` would win ove == Changelog == += 1.0.1 = +* Fix margin style for dialog element; set to auto by default instead of 0. + = 1.0.0 = * Initial Release diff --git a/src/blockparty-modal/block.json b/src/blockparty-modal/block.json index f2918a7..2b6b430 100644 --- a/src/blockparty-modal/block.json +++ b/src/blockparty-modal/block.json @@ -2,7 +2,7 @@ "$schema": "https://schemas.wp.org/trunk/block.json", "apiVersion": 3, "name": "blockparty/modal", - "version": "1.0.0", + "version": "1.0.1", "title": "Modal", "category": "widgets", "description": "Insert a modal dialog that opens on trigger. Configure content and behaviour in the editor; the modal is displayed on the frontend when activated.", From bd665214350447c771e1a05238813615caf4c55e Mon Sep 17 00:00:00 2001 From: mricoul Date: Wed, 18 Feb 2026 14:12:33 +0100 Subject: [PATCH 3/3] fix(save): removes duplicate InnerBlocks.Content Removes a duplicate InnerBlocks.Content component within the modal's structure. This prevents redundant rendering of the same content, optimizing performance. --- readme.txt | 1 + src/blockparty-modal/save.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 1a65535..6cf5e8e 100644 --- a/readme.txt +++ b/readme.txt @@ -47,6 +47,7 @@ directory take precedence. For example, `/assets/screenshot-1.png` would win ove = 1.0.1 = * Fix margin style for dialog element; set to auto by default instead of 0. +* Remove dupplicated InnerBlocks.Content = 1.0.0 = * Initial Release diff --git a/src/blockparty-modal/save.js b/src/blockparty-modal/save.js index 5d913a5..aba72eb 100644 --- a/src/blockparty-modal/save.js +++ b/src/blockparty-modal/save.js @@ -63,7 +63,6 @@ export default function save( { attributes } ) {
- { enableCloseButton && closedBy !== 'none' && (