Skip to content

Commit 702cb2e

Browse files
Read More: Add minimum width and height support
1 parent c1dd881 commit 702cb2e

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
@@ -859,7 +859,7 @@ Displays the link of a post, page, or any other content-type.
859859

860860
- **Name:** [core/read-more](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-read-more/)
861861
- **Category:** [theme](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/)
862-
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
862+
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), dimensions (minHeight, minWidth), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
863863
- **Attributes:** content, linkTarget
864864

865865
## RSS

‎packages/block-library/src/read-more/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
3333
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
3434
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
3535
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
36+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
37+
- `minHeight`: `true`
38+
- `minWidth`: `true`
3639
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
3740
- `margin`: `["top","bottom"]`
3841
- `padding`: `true`

‎packages/block-library/src/read-more/block.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
"textDecoration": true
4444
}
4545
},
46+
"dimensions": {
47+
"minHeight": true,
48+
"minWidth": true
49+
},
4650
"spacing": {
4751
"margin": [ "top", "bottom" ],
4852
"padding": true,

0 commit comments

Comments
 (0)