Skip to content

Commit c67c3a1

Browse files
Columns: Add minimum width and height support
1 parent c1dd881 commit c67c3a1

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
@@ -167,7 +167,7 @@ Display content in multiple columns, with blocks added to each column.
167167
- **Name:** [core/columns](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-columns/)
168168
- **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
169169
- **Allowed Blocks:** core/column
170-
- **Supports:** align (full, wide), anchor, background (backgroundImage, backgroundSize, gradient), color (background, button, gradients, heading, link, text), interactivity (clientNavigation), layout (default, ~~allowEditing~~, ~~allowInheriting~~, ~~allowSwitching~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
170+
- **Supports:** align (full, wide), anchor, background (backgroundImage, backgroundSize, gradient), color (background, button, gradients, heading, link, text), dimensions (minHeight, minWidth), interactivity (clientNavigation), layout (default, ~~allowEditing~~, ~~allowInheriting~~, ~~allowSwitching~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
171171
- **Attributes:** isStackedOnMobile, templateLock, verticalAlignment
172172

173173
## Comment Author Avatar (deprecated)

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
3939
- `backgroundImage`: `true`
4040
- `backgroundSize`: `true`
4141
- `gradient`: `true`
42+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
43+
- `minHeight`: `true`
44+
- `minWidth`: `true`
4245
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
4346
- `blockGap`: `{"__experimentalDefault":"2em","sides":["horizontal","vertical"]}`
4447
- `margin`: `["top","bottom"]`

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
"gradient": true
4444
}
4545
},
46+
"dimensions": {
47+
"minHeight": true,
48+
"minWidth": true
49+
},
4650
"spacing": {
4751
"blockGap": {
4852
"__experimentalDefault": "2em",

0 commit comments

Comments
 (0)