Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment Pagination Next: Add Border and Spacing Support #64310

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Displays the next comment's page link. ([Source](https://github.com/WordPress/gu
- **Name:** core/comments-pagination-next
- **Category:** theme
- **Parent:** core/comments-pagination
- **Supports:** color (background, gradients, ~~text~~), interactivity (clientNavigation), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Supports:** color (background, gradients, ~~text~~), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** label

## Comments Page Numbers
Expand Down
17 changes: 16 additions & 1 deletion packages/block-library/src/comments-pagination-next/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@
},
"interactivity": {
"clientNavigation": true
},
"spacing": {
"margin": true,
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"style": "wp-block-comments-pagination-next"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-comments-pagination-next {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@
@import "./verse/style.scss";
@import "./video/style.scss";
@import "./footnotes/style.scss";
@import "./comments-pagination-next/style.scss";

@import "common.scss";
Loading