Skip to content

Commit 1f5d9e3

Browse files
aaronrobertshawramonjd
authored andcommitted
Site Tagline: Add minimum width and height support
1 parent 9e72568 commit 1f5d9e3

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
@@ -913,7 +913,7 @@ Describe in a few words what this site is about. This is important for search re
913913

914914
- **Name:** [core/site-tagline](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-site-tagline/)
915915
- **Category:** [theme](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/)
916-
- **Supports:** align (full, wide), anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), contentRole, interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fitText, fontSize, lineHeight, textAlign), ~~html~~
916+
- **Supports:** align (full, wide), anchor, background (backgroundImage, backgroundSize, gradient), color (background, gradients, text), contentRole, dimensions (minHeight, minWidth), interactivity (clientNavigation), shadow, spacing (margin, padding), typography (fitText, fontSize, lineHeight, textAlign), ~~html~~
917917
- **Attributes:** level, levelOptions
918918

919919
## Site Title

‎packages/block-library/src/site-tagline/README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
3232
- [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
3333
- [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients): `true`
3434
- [`contentRole`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#contentrole): `true`
35+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
36+
- `minHeight`: `true`
37+
- `minWidth`: `true`
3538
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
3639
- `margin`: `true`
3740
- `padding`: `true`

‎packages/block-library/src/site-tagline/block.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
}
4545
},
4646
"contentRole": true,
47+
"dimensions": {
48+
"minHeight": true,
49+
"minWidth": true
50+
},
4751
"spacing": {
4852
"margin": true,
4953
"padding": true,

0 commit comments

Comments
 (0)