Skip to content

Commit 9aa3ed0

Browse files
aaronrobertshawshail-mehta
authored andcommitted
Page List: Add minimum width and height support (WordPress#83908)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
1 parent f0c2ab5 commit 9aa3ed0

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎docs/reference-guides/core-blocks/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ Display a list of all pages.
555555
- **Name:** [core/page-list](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-widgets/core-block-page-list/)
556556
- **Category:** [widgets](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-widgets/)
557557
- **Allowed Blocks:** core/page-list-item
558-
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, link, text), contentRole, interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
558+
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, link, text), contentRole, dimensions (minHeight, minWidth), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
559559
- **Attributes:** parentPageID
560560

561561
## Page List Item

‎packages/block-library/src/page-list/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
4747
- `padding`: `true`
4848
- `margin`: `true`
4949
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
50+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
51+
- `minHeight`: `true`
52+
- `minWidth`: `true`
5053
- [`contentRole`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#contentrole): `true`
5154

5255
## Context

‎packages/block-library/src/page-list/block.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@
8686
}
8787
},
8888
"shadow": true,
89+
"dimensions": {
90+
"minHeight": true,
91+
"minWidth": true
92+
},
8993
"contentRole": true
9094
},
9195
"editorStyle": "wp-block-page-list-editor",

0 commit comments

Comments
 (0)