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

Page List : Add border and spacing support #66385

Merged
merged 10 commits into from
Nov 18, 2024
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:** interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:** isNested, parentPageID

## Page List Item
Expand Down
14 changes: 14 additions & 0 deletions packages/block-library/src/page-list/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
aaronrobertshaw marked this conversation as resolved.
Show resolved Hide resolved
"color": true,
"width": true,
"style": true
},
"spacing": {
"padding": true,
"margin": true,
"__experimentalDefaultControls": {
"padding": false,
"margin": false
}
}
},
"editorStyle": "wp-block-page-list-editor",
Expand Down
4 changes: 4 additions & 0 deletions packages/block-library/src/page-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
background-color: inherit;
}
}
.wp-block-page-list {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
Loading