Skip to content

Commit

Permalink
Add spacing support to block.json for pagination inner blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcafferkey committed Aug 29, 2024
1 parent 30a1747 commit d629894
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ Displays the next posts page link. ([Source](https://github.com/WordPress/gutenb
- **Name:** core/query-pagination-next
- **Category:** theme
- **Parent:** core/query-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

## Page Numbers
Expand All @@ -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~~), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** midSize

## Previous Page
Expand All @@ -765,7 +765,7 @@ Displays the previous posts page link. ([Source](https://github.com/WordPress/gu
- **Name:** core/query-pagination-previous
- **Category:** theme
- **Parent:** core/query-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

## Query Title
Expand Down
12 changes: 12 additions & 0 deletions packages/block-library/src/query-pagination-next/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@
"background": true
}
},
"spacing": {
"margin": true,
"padding": true
},
"__experimentalStyle": {
"spacing": {
"margin": {
"right": "0.5em",
"bottom": "0.5em"
}
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
Expand Down
12 changes: 12 additions & 0 deletions packages/block-library/src/query-pagination-numbers/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
"background": true
}
},
"spacing": {
"margin": true,
"padding": true
},
"__experimentalStyle": {
"spacing": {
"margin": {
"right": "0.5em",
"bottom": "0.5em"
}
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
Expand Down
12 changes: 12 additions & 0 deletions packages/block-library/src/query-pagination-previous/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@
"background": true
}
},
"spacing": {
"margin": true,
"padding": true
},
"__experimentalStyle": {
"spacing": {
"margin": {
"right": "0.5em",
"bottom": "0.5em"
}
}
},
"typography": {
"fontSize": true,
"lineHeight": true,
Expand Down

0 comments on commit d629894

Please sign in to comment.