Skip to content

Commit 511d7ce

Browse files
aaronrobertshawshail-mehta
andauthored
Archives: Add minimum height support (#83573)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
1 parent 5c4a573 commit 511d7ce

3 files changed

Lines changed: 6 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
@@ -65,7 +65,7 @@ Display a date archive of your posts.
6565

6666
- **Name:** [core/archives](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-widgets/core-block-archives/)
6767
- **Category:** [widgets](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-widgets/)
68-
- **Supports:** align, anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
68+
- **Supports:** align, anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, link, text), dimensions (minHeight), interactivity (clientNavigation), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
6969
- **Attributes:** displayAsDropdown, showLabel, showPostCounts, type
7070

7171
## Audio

‎packages/block-library/src/archives/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
2929
- `backgroundImage`: `true`
3030
- `backgroundSize`: `true`
3131
- `gradient`: `true`
32+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
33+
- `minHeight`: `true`
3234
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
3335
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
3436
- `margin`: `true`

‎packages/block-library/src/archives/block.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"gradient": true
4343
}
4444
},
45+
"dimensions": {
46+
"minHeight": true
47+
},
4548
"html": false,
4649
"spacing": {
4750
"margin": true,

0 commit comments

Comments
 (0)