diff --git a/docs/reference-guides/core-blocks/README.md b/docs/reference-guides/core-blocks/README.md index 0b78e85679f071..82d0bd8426d5b9 100644 --- a/docs/reference-guides/core-blocks/README.md +++ b/docs/reference-guides/core-blocks/README.md @@ -265,7 +265,7 @@ Displays the next comment's page link. - **Name:** [core/comments-pagination-next](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-comments-pagination-next/) - **Category:** [theme](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/) - **Parent:** core/comments-pagination -- **Supports:** anchor, background (gradient), color (background, gradients, ~~text~~), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ +- **Supports:** anchor, background (gradient), color (background, gradients, ~~text~~), interactivity (clientNavigation), spacing (padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~ - **Attributes:** label ## Comments Page Numbers diff --git a/packages/block-library/src/comments-pagination-next/README.md b/packages/block-library/src/comments-pagination-next/README.md index a600f42127043a..a3c3c8bebd763f 100644 --- a/packages/block-library/src/comments-pagination-next/README.md +++ b/packages/block-library/src/comments-pagination-next/README.md @@ -38,6 +38,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer - [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true` - [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity): - `clientNavigation`: `true` +- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing): + - `padding`: `true` ## Context diff --git a/packages/block-library/src/comments-pagination-next/block.json b/packages/block-library/src/comments-pagination-next/block.json index 3b3c122a9084d2..7cbc1bba7cd1cd 100644 --- a/packages/block-library/src/comments-pagination-next/block.json +++ b/packages/block-library/src/comments-pagination-next/block.json @@ -42,6 +42,19 @@ }, "interactivity": { "clientNavigation": true + }, + "spacing": { + "padding": true, + "__experimentalDefaultControls": { + "padding": false + } + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true } - } + }, + "style": "wp-block-comments-pagination-next" } diff --git a/packages/block-library/src/comments-pagination-next/style.scss b/packages/block-library/src/comments-pagination-next/style.scss new file mode 100644 index 00000000000000..264d0ad608bc00 --- /dev/null +++ b/packages/block-library/src/comments-pagination-next/style.scss @@ -0,0 +1,4 @@ +.wp-block-comments-pagination-next { + // This block has customizable padding, border-box makes that more predictable. + box-sizing: border-box; +} diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index 6321fdf68c71ce..c15734d055d2eb 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -14,6 +14,7 @@ @use "./columns/style.scss" as *; @use "./comments/style.scss" as *; @use "./comments-pagination/style.scss" as *; +@use "./comments-pagination-next/style.scss" as *; @use "./comment-template/style.scss" as *; @use "./comment-date/style.scss" as *; @use "./comment-content/style.scss" as *;