Skip to content

Commit 2079bad

Browse files
aaronrobertshawshail-mehta
authored andcommitted
Tab Panels: Add minimum height support (WordPress#83594)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
1 parent a200bad commit 2079bad

3 files changed

Lines changed: 6 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
@@ -982,7 +982,7 @@ Container for tab panel content in a tabbed interface.
982982
- **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
983983
- **Parent:** core/tabs
984984
- **Allowed Blocks:** core/tab-panel
985-
- **Supports:** background (backgroundImage, backgroundSize, gradient), color (background, button, heading, link, text), shadow, spacing (padding), typography (fontSize, lineHeight), ~~html~~, ~~lock~~, ~~visibility~~
985+
- **Supports:** background (backgroundImage, backgroundSize, gradient), color (background, button, heading, link, text), dimensions (minHeight), shadow, spacing (padding), typography (fontSize, lineHeight), ~~html~~, ~~lock~~, ~~visibility~~
986986

987987
## Table
988988

‎packages/block-library/src/tab-panels/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
4242
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
4343
- [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
4444
- `padding`: `true`
45+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
46+
- `minHeight`: `true`
4547
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
4648
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`
4749
- [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight): `true`

‎packages/block-library/src/tab-panels/block.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"spacing": {
3737
"padding": true
3838
},
39+
"dimensions": {
40+
"minHeight": true
41+
},
3942
"typography": {
4043
"fontSize": true,
4144
"lineHeight": true,

0 commit comments

Comments
 (0)