Skip to content

Commit 2d5e4e0

Browse files
aaronrobertshawshail-mehta
authored andcommitted
Post Time to Read: Add minimum width and height support (WordPress#83598)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
1 parent 2079bad commit 2d5e4e0

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
@@ -736,7 +736,7 @@ Show minutes required to finish reading the post. Can also show a word count.
736736

737737
- **Name:** [core/post-time-to-read](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-post-time-to-read/)
738738
- **Category:** [theme](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/)
739-
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight, textAlign), ~~html~~
739+
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), dimensions (minHeight, minWidth), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight, textAlign), ~~html~~
740740
- **Attributes:** averageReadingSpeed, displayAsRange, displayMode
741741

742742
## Title

‎packages/block-library/src/post-time-to-read/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
2929
- `gradient`: `true`
3030
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
3131
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
32+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
33+
- `minHeight`: `true`
34+
- `minWidth`: `true`
3235
- [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false`
3336
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
3437
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):

‎packages/block-library/src/post-time-to-read/block.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
"text": true
3636
}
3737
},
38+
"dimensions": {
39+
"minHeight": true,
40+
"minWidth": true
41+
},
3842
"html": false,
3943
"shadow": true,
4044
"spacing": {

0 commit comments

Comments
 (0)