From e58036ba02568299bf28125866c58cbef1db5244 Mon Sep 17 00:00:00 2001 From: NidhiDhandhukiya74 Date: Thu, 14 Nov 2024 19:11:42 +0530 Subject: [PATCH 1/2] added border support to calender block --- packages/block-library/src/calendar/block.json | 12 ++++++++++++ packages/block-library/src/calendar/style.scss | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/calendar/block.json b/packages/block-library/src/calendar/block.json index 6ba8f7d725e6e..d985c5414c112 100644 --- a/packages/block-library/src/calendar/block.json +++ b/packages/block-library/src/calendar/block.json @@ -40,6 +40,18 @@ }, "interactivity": { "clientNavigation": true + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } } }, "style": "wp-block-calendar" diff --git a/packages/block-library/src/calendar/style.scss b/packages/block-library/src/calendar/style.scss index 969d1aafec99e..d68d47a5fa483 100644 --- a/packages/block-library/src/calendar/style.scss +++ b/packages/block-library/src/calendar/style.scss @@ -1,6 +1,7 @@ .wp-block-calendar { text-align: center; - + // This block has customizable borders. Border-box sizing makes that more predictable. + box-sizing: border-box; th, td { padding: 0.25em; From bf204e073758b432ccb063b5fce156f7b2ff2c71 Mon Sep 17 00:00:00 2001 From: NidhiDhandhukiya74 Date: Thu, 14 Nov 2024 19:25:32 +0530 Subject: [PATCH 2/2] added border support to calender block --- packages/block-library/src/calendar/block.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/block-library/src/calendar/block.json b/packages/block-library/src/calendar/block.json index d985c5414c112..0735148fdc897 100644 --- a/packages/block-library/src/calendar/block.json +++ b/packages/block-library/src/calendar/block.json @@ -47,10 +47,10 @@ "width": true, "style": true, "__experimentalDefaultControls": { - "radius": true, - "color": true, - "width": true, - "style": true + "radius": false, + "color": false, + "width": false, + "style": false } } },