From 8235d2213134e58ccca6557f1de49124fa03c284 Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 15 Aug 2024 11:03:21 +0530 Subject: [PATCH 1/4] Post Author Name: Border Support --- .../block-library/src/post-author-name/block.json | 15 +++++++++++++-- .../block-library/src/post-author-name/style.scss | 3 +++ packages/block-library/src/style.scss | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 packages/block-library/src/post-author-name/style.scss diff --git a/packages/block-library/src/post-author-name/block.json b/packages/block-library/src/post-author-name/block.json index 31874ddbf9bc5d..3d08504d3432e4 100644 --- a/packages/block-library/src/post-author-name/block.json +++ b/packages/block-library/src/post-author-name/block.json @@ -27,7 +27,11 @@ "html": false, "spacing": { "margin": true, - "padding": true + "padding": true, + "__experimentalDefaultControls": { + "margin": false, + "padding": false + } }, "color": { "gradients": true, @@ -53,6 +57,13 @@ }, "interactivity": { "clientNavigation": true + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true } - } + }, + "style": "wp-block-post-author-name" } diff --git a/packages/block-library/src/post-author-name/style.scss b/packages/block-library/src/post-author-name/style.scss new file mode 100644 index 00000000000000..10f305e5573564 --- /dev/null +++ b/packages/block-library/src/post-author-name/style.scss @@ -0,0 +1,3 @@ +.wp-block-post-author-name { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-b \ No newline at end of file diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index 86fe5a3eefabaf..338753ae53fcbf 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -40,6 +40,7 @@ @import "./post-terms/style.scss"; @import "./post-time-to-read/style.scss"; @import "./post-title/style.scss"; +@import "./post-author-name/style.scss"; @import "./preformatted/style.scss"; @import "./pullquote/style.scss"; @import "./post-template/style.scss"; From b72460db91e9ebd783d65363f74f3abeb8980def Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 15 Aug 2024 11:07:09 +0530 Subject: [PATCH 2/4] Post Author Name: Border Support --- packages/block-library/src/post-author-name/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/post-author-name/style.scss b/packages/block-library/src/post-author-name/style.scss index 10f305e5573564..0f57b30490fa68 100644 --- a/packages/block-library/src/post-author-name/style.scss +++ b/packages/block-library/src/post-author-name/style.scss @@ -1,3 +1,4 @@ .wp-block-post-author-name { // This block has customizable padding, border-box makes that more predictable. - box-sizing: border-b \ No newline at end of file + box-sizing: border-box; +} From d181080ca60577a4d7a6227023628c6958f1799e Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 15 Aug 2024 12:17:05 +0530 Subject: [PATCH 3/4] Keep Spacing Controle bydefault --- packages/block-library/src/post-author-name/block.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/block-library/src/post-author-name/block.json b/packages/block-library/src/post-author-name/block.json index 3d08504d3432e4..866e7f37dba27e 100644 --- a/packages/block-library/src/post-author-name/block.json +++ b/packages/block-library/src/post-author-name/block.json @@ -27,11 +27,7 @@ "html": false, "spacing": { "margin": true, - "padding": true, - "__experimentalDefaultControls": { - "margin": false, - "padding": false - } + "padding": true }, "color": { "gradients": true, From 6ff8634c2f92648dcc43bf728fa4db6938e78484 Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 15 Aug 2024 13:36:37 +0530 Subject: [PATCH 4/4] Added Border Control Display By Default --- packages/block-library/src/post-author-name/block.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/post-author-name/block.json b/packages/block-library/src/post-author-name/block.json index 866e7f37dba27e..68d2c49bd91056 100644 --- a/packages/block-library/src/post-author-name/block.json +++ b/packages/block-library/src/post-author-name/block.json @@ -58,7 +58,13 @@ "radius": true, "color": true, "width": true, - "style": true + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } }, "style": "wp-block-post-author-name"