Skip to content

Commit a200bad

Browse files
aaronrobertshawshail-mehta
authored andcommitted
Home Link: Add minimum width and height support (WordPress#83582)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
1 parent 821e950 commit a200bad

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
@@ -385,7 +385,7 @@ Create a link that always points to the homepage of the site. Usually not necess
385385
- **Name:** [core/home-link](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-home-link/)
386386
- **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
387387
- **Parent:** core/navigation
388-
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
388+
- **Supports:** anchor, background (backgroundImage, backgroundSize, gradient), dimensions (minHeight, minWidth), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
389389
- **Attributes:** description, label, opensInNewTab
390390

391391
## Custom HTML

‎packages/block-library/src/home-link/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
3838
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
3939
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`
4040
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
41+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
42+
- `minHeight`: `true`
43+
- `minWidth`: `true`
4144
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
4245
- `margin`: `true`
4346
- `padding`: `true`

‎packages/block-library/src/home-link/block.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
}
5353
},
5454
"shadow": true,
55+
"dimensions": {
56+
"minHeight": true,
57+
"minWidth": true
58+
},
5559
"__experimentalBorder": {
5660
"color": true,
5761
"radius": true,

0 commit comments

Comments
 (0)