From b79f1ce58bf26baf0c65cd9c3ed8fdf39e42ce6c Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Sat, 6 Jul 2024 20:03:39 +1000 Subject: [PATCH 1/3] List: Add border support --- packages/block-library/src/list/block.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/block-library/src/list/block.json b/packages/block-library/src/list/block.json index 8b100071c15ea9..2a667fe91f4523 100644 --- a/packages/block-library/src/list/block.json +++ b/packages/block-library/src/list/block.json @@ -39,6 +39,18 @@ "supports": { "anchor": true, "html": false, + "__experimentalBorder": { + "color": true, + "radius": true, + "style": true, + "width": true, + "__experimentalDefaultControls": { + "color": true, + "radius": true, + "style": true, + "width": true + } + }, "typography": { "fontSize": true, "lineHeight": true, From 2fa7e3adb7c1057b24c11bb03c1540dd2e12c805 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:00:23 +0700 Subject: [PATCH 2/3] Do not apply global styles to nested list blocks --- packages/block-library/src/list/block.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/block-library/src/list/block.json b/packages/block-library/src/list/block.json index 2a667fe91f4523..9ae349de81f06a 100644 --- a/packages/block-library/src/list/block.json +++ b/packages/block-library/src/list/block.json @@ -87,6 +87,9 @@ "clientNavigation": true } }, + "selectors": { + "border": ".wp-block-list:not(.wp-block-list .wp-block-list)" + }, "editorStyle": "wp-block-list-editor", "style": "wp-block-list" } From 3391b11fe766d85391bab48b781c62a6483602be Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 9 Aug 2024 20:37:40 +0700 Subject: [PATCH 3/3] Make border controls optional --- packages/block-library/src/list/block.json | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/block-library/src/list/block.json b/packages/block-library/src/list/block.json index 9ae349de81f06a..ea07a0eb542df3 100644 --- a/packages/block-library/src/list/block.json +++ b/packages/block-library/src/list/block.json @@ -43,13 +43,7 @@ "color": true, "radius": true, "style": true, - "width": true, - "__experimentalDefaultControls": { - "color": true, - "radius": true, - "style": true, - "width": true - } + "width": true }, "typography": { "fontSize": true,