From f8dc90fb305b203b876634beadbebf8414f1a27c Mon Sep 17 00:00:00 2001 From: ramonjd Date: Fri, 13 Aug 2021 14:39:59 +1000 Subject: [PATCH] Initial commit. Adding border supports defaults in block.json --- packages/block-library/src/button/block.json | 5 ++++- packages/block-library/src/group/block.json | 8 +++++++- packages/block-library/src/image/block.json | 5 ++++- packages/block-library/src/pullquote/block.json | 8 +++++++- packages/block-library/src/search/block.json | 6 +++++- packages/block-library/src/table/block.json | 7 ++++++- 6 files changed, 33 insertions(+), 6 deletions(-) diff --git a/packages/block-library/src/button/block.json b/packages/block-library/src/button/block.json index 569ecc47fd0e7..3005339624db7 100644 --- a/packages/block-library/src/button/block.json +++ b/packages/block-library/src/button/block.json @@ -75,7 +75,10 @@ }, "__experimentalBorder": { "radius": true, - "__experimentalSkipSerialization": true + "__experimentalSkipSerialization": true, + "__experimentalDefaultControls": { + "radius": true + } }, "__experimentalSelector": ".wp-block-button__link" }, diff --git a/packages/block-library/src/group/block.json b/packages/block-library/src/group/block.json index 5e182cd0e9cba..9470a5680b080 100644 --- a/packages/block-library/src/group/block.json +++ b/packages/block-library/src/group/block.json @@ -33,7 +33,13 @@ "color": true, "radius": true, "style": true, - "width": true + "width": true, + "__experimentalDefaultControls": { + "color": true, + "radius": true, + "style": true, + "width": true + } }, "__experimentalLayout": true }, diff --git a/packages/block-library/src/image/block.json b/packages/block-library/src/image/block.json index 7aced7d40505e..519243f64e919 100644 --- a/packages/block-library/src/image/block.json +++ b/packages/block-library/src/image/block.json @@ -83,7 +83,10 @@ "background": false }, "__experimentalBorder": { - "radius": true + "radius": true, + "__experimentalDefaultControls": { + "radius": true + } } }, "styles": [ diff --git a/packages/block-library/src/pullquote/block.json b/packages/block-library/src/pullquote/block.json index ad0288f878e67..4b0b9bebf228b 100644 --- a/packages/block-library/src/pullquote/block.json +++ b/packages/block-library/src/pullquote/block.json @@ -36,7 +36,13 @@ "color": true, "radius": true, "style": true, - "width": true + "width": true, + "__experimentalDefaultControls": { + "color": true, + "radius": true, + "style": true, + "width": true + } } }, "editorStyle": "wp-block-pullquote-editor", diff --git a/packages/block-library/src/search/block.json b/packages/block-library/src/search/block.json index d2b3e08e946cb..57ee55078101c 100644 --- a/packages/block-library/src/search/block.json +++ b/packages/block-library/src/search/block.json @@ -48,7 +48,11 @@ "__experimentalBorder": { "color": true, "radius": true, - "__experimentalSkipSerialization": true + "__experimentalSkipSerialization": true, + "__experimentalDefaultControls": { + "color": true, + "radius": true + } }, "html": false }, diff --git a/packages/block-library/src/table/block.json b/packages/block-library/src/table/block.json index f4723331098bc..57cf1c017c308 100644 --- a/packages/block-library/src/table/block.json +++ b/packages/block-library/src/table/block.json @@ -133,7 +133,12 @@ "__experimentalSkipSerialization": true, "color": true, "style": true, - "width": true + "width": true, + "__experimentalDefaultControls": { + "color": true, + "style": true, + "width": true + } }, "__experimentalSelector": ".wp-block-table > table" },