From c86ccb0666064fbdbf71050adeeeeee800332896 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:35:32 +0530 Subject: [PATCH 1/3] border added to post content block --- .../block-library/src/post-content/block.json | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index 1b9de707cb3220..f91ccb2973157c 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -6,12 +6,19 @@ "category": "theme", "description": "Displays the contents of a post or page.", "textdomain": "default", - "usesContext": [ "postId", "postType", "queryId" ], + "usesContext": [ + "postId", + "postType", + "queryId" + ], "example": { "viewportWidth": 350 }, "supports": { - "align": [ "wide", "full" ], + "align": [ + "wide", + "full" + ], "html": false, "layout": true, "background": { @@ -52,8 +59,20 @@ "__experimentalDefaultControls": { "fontSize": true } + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } }, "style": "wp-block-post-content", "editorStyle": "wp-block-post-content-editor" -} +} \ No newline at end of file From 1354b4f9ddb0455914a8302b65de715266e56005 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Thu, 24 Oct 2024 18:11:42 +0530 Subject: [PATCH 2/3] spacing added to post content --- docs/reference-guides/core-blocks.md | 2 +- packages/block-library/src/post-content/block.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index dd49d156857249..4db90e9b2f8142 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -616,7 +616,7 @@ Displays the contents of a post or page. ([Source](https://github.com/WordPress/ - **Name:** core/post-content - **Category:** theme -- **Supports:** align (full, wide), background (backgroundImage, backgroundSize), color (background, gradients, link, text), dimensions (minHeight), layout, spacing (blockGap, padding), typography (fontSize, lineHeight), ~~html~~ +- **Supports:** align (full, wide), background (backgroundImage, backgroundSize), color (background, gradients, link, text), dimensions (minHeight), layout, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~ ## Date diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index f91ccb2973157c..bf9a7ea0da81c8 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -34,6 +34,7 @@ "spacing": { "blockGap": true, "padding": true, + "margin": true, "__experimentalDefaultControls": { "margin": false, "padding": false From f82767ac1f0da32f289ddfe85ffab646abfd223b Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:31:00 +0530 Subject: [PATCH 3/3] spacing revert --- packages/block-library/src/post-content/block.json | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/block-library/src/post-content/block.json b/packages/block-library/src/post-content/block.json index bf9a7ea0da81c8..ed9c47154b2f8e 100644 --- a/packages/block-library/src/post-content/block.json +++ b/packages/block-library/src/post-content/block.json @@ -6,19 +6,12 @@ "category": "theme", "description": "Displays the contents of a post or page.", "textdomain": "default", - "usesContext": [ - "postId", - "postType", - "queryId" - ], + "usesContext": [ "postId", "postType", "queryId" ], "example": { "viewportWidth": 350 }, "supports": { - "align": [ - "wide", - "full" - ], + "align": [ "wide", "full" ], "html": false, "layout": true, "background": {