From 3eb2841cac19c32e4fe0c43928bcd7e0515ce994 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:50:28 +0530 Subject: [PATCH 1/3] pagination number border added --- .../src/query-pagination-numbers/block.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/block-library/src/query-pagination-numbers/block.json b/packages/block-library/src/query-pagination-numbers/block.json index 8a9f0ee69f14e..28504df60f60f 100644 --- a/packages/block-library/src/query-pagination-numbers/block.json +++ b/packages/block-library/src/query-pagination-numbers/block.json @@ -37,6 +37,18 @@ "fontSize": true } }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true, + "__experimentalDefaultControls": { + "radius": true, + "color": true, + "width": true, + "style": true + } + }, "interactivity": { "clientNavigation": true } From 707ea524aa71e0ad0aadf130a3a8448ee742b462 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:40:11 +0530 Subject: [PATCH 2/3] spacing added to pagination numbers --- docs/reference-guides/core-blocks.md | 2 +- .../src/query-pagination-numbers/block.json | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index dd49d15685724..42f48d030693c 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -755,7 +755,7 @@ Displays a list of page numbers for pagination. ([Source](https://github.com/Wor - **Name:** core/query-pagination-numbers - **Category:** theme - **Parent:** core/query-pagination -- **Supports:** color (background, gradients, ~~text~~), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), spacing (margin, padding), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** midSize ## Previous Page diff --git a/packages/block-library/src/query-pagination-numbers/block.json b/packages/block-library/src/query-pagination-numbers/block.json index 28504df60f60f..841cee6a537c0 100644 --- a/packages/block-library/src/query-pagination-numbers/block.json +++ b/packages/block-library/src/query-pagination-numbers/block.json @@ -4,7 +4,9 @@ "name": "core/query-pagination-numbers", "title": "Page Numbers", "category": "theme", - "parent": [ "core/query-pagination" ], + "parent": [ + "core/query-pagination" + ], "description": "Displays a list of page numbers for pagination.", "textdomain": "default", "attributes": { @@ -13,7 +15,11 @@ "default": 2 } }, - "usesContext": [ "queryId", "query", "enhancedPagination" ], + "usesContext": [ + "queryId", + "query", + "enhancedPagination" + ], "supports": { "reusable": false, "html": false, @@ -37,6 +43,10 @@ "fontSize": true } }, + "spacing": { + "margin": true, + "padding": true + }, "__experimentalBorder": { "radius": true, "color": true, @@ -54,4 +64,4 @@ } }, "editorStyle": "wp-block-query-pagination-numbers-editor" -} +} \ No newline at end of file From ea83358d750f1f94a39f176505bcdff4f0d047d0 Mon Sep 17 00:00:00 2001 From: Rinkal Pagdar <92097119+rinkalpagdar@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:20:27 +0530 Subject: [PATCH 3/3] pipeline fix --- 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 42f48d030693c..26a7650275767 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -755,7 +755,7 @@ Displays a list of page numbers for pagination. ([Source](https://github.com/Wor - **Name:** core/query-pagination-numbers - **Category:** theme - **Parent:** core/query-pagination -- **Supports:** color (background, gradients, ~~text~~), spacing (margin, padding), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** color (background, gradients, ~~text~~), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** midSize ## Previous Page