From f63e3489bdffdb0d7c6b719de35dfb85445cd01e Mon Sep 17 00:00:00 2001 From: benazeer Date: Thu, 24 Oct 2024 22:03:27 +0530 Subject: [PATCH 1/5] Added color support for page list block --- packages/block-library/src/page-list/block.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/block-library/src/page-list/block.json b/packages/block-library/src/page-list/block.json index b465e4ef5dc3d..416e271d89bc0 100644 --- a/packages/block-library/src/page-list/block.json +++ b/packages/block-library/src/page-list/block.json @@ -51,6 +51,12 @@ }, "interactivity": { "clientNavigation": true + }, + "color": { + "text": false, + "background": true, + "link": true, + "gradients": true } }, "editorStyle": "wp-block-page-list-editor", From bd2e2380d6d41ee95fd50a64ada68999c9221c7f Mon Sep 17 00:00:00 2001 From: benazeer Date: Thu, 24 Oct 2024 22:30:35 +0530 Subject: [PATCH 2/5] Doc Build --- docs/reference-guides/core-blocks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index dd49d15685724..4e01d899e6eca 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -512,7 +512,7 @@ Display a list of all pages. ([Source](https://github.com/WordPress/gutenberg/tr - **Name:** core/page-list - **Category:** widgets - **Allowed Blocks:** core/page-list-item -- **Supports:** interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, link, ~~text~~), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** isNested, parentPageID ## Page List Item From f35dcf3b94a4ed588a8998067662dfa01c3e822f Mon Sep 17 00:00:00 2001 From: benazeer-ben Date: Mon, 11 Nov 2024 16:58:59 +0530 Subject: [PATCH 3/5] Added text color support --- packages/block-library/src/page-list/block.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/page-list/block.json b/packages/block-library/src/page-list/block.json index 416e271d89bc0..9834acf018aa0 100644 --- a/packages/block-library/src/page-list/block.json +++ b/packages/block-library/src/page-list/block.json @@ -53,7 +53,7 @@ "clientNavigation": true }, "color": { - "text": false, + "text": true, "background": true, "link": true, "gradients": true From 85f34fc8d0f7ad513c1eb9bc2061694af953c5db Mon Sep 17 00:00:00 2001 From: benazeer-ben Date: Mon, 11 Nov 2024 18:57:08 +0530 Subject: [PATCH 4/5] Doc Build --- docs/reference-guides/core-blocks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 4e01d899e6eca..12f7a3f056cd5 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -512,7 +512,7 @@ Display a list of all pages. ([Source](https://github.com/WordPress/gutenberg/tr - **Name:** core/page-list - **Category:** widgets - **Allowed Blocks:** core/page-list-item -- **Supports:** color (background, gradients, link, ~~text~~), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, link, text), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** isNested, parentPageID ## Page List Item From e8a234a9cbcb26b6393172017a71263f6858bf89 Mon Sep 17 00:00:00 2001 From: Benazeer Hassan <66269472+benazeer-ben@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:21:49 +0530 Subject: [PATCH 5/5] Update packages/block-library/src/page-list/block.json adding default controls Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> --- packages/block-library/src/page-list/block.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/page-list/block.json b/packages/block-library/src/page-list/block.json index 9834acf018aa0..47d055e466874 100644 --- a/packages/block-library/src/page-list/block.json +++ b/packages/block-library/src/page-list/block.json @@ -56,7 +56,12 @@ "text": true, "background": true, "link": true, - "gradients": true + "gradients": true, + "__experimentalDefaultControls": { + "background": true, + "text": true, + "link": true + } } }, "editorStyle": "wp-block-page-list-editor",