Skip to content

Commit 43bda2b

Browse files
aaronrobertshawramonjd
authored andcommitted
Tabs: Add minimum width support (WordPress#83595)
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org> Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
1 parent 444449a commit 43bda2b

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
@@ -1010,7 +1010,7 @@ Display content in a tabbed interface to help users navigate detailed content wi
10101010
- **Name:** [core/tabs](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-tabs/)
10111011
- **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
10121012
- **Allowed Blocks:** core/tab-list, core/tab-panels
1013-
- **Supports:** align, anchor, background (backgroundImage, backgroundSize, gradient), color (background, button, heading, link, text), interactivity, layout (~~allowEditing~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
1013+
- **Supports:** align, anchor, background (backgroundImage, backgroundSize, gradient), color (background, button, heading, link, text), dimensions (minWidth), interactivity, layout (~~allowEditing~~), shadow, spacing (blockGap, margin, padding), typography (fontSize, lineHeight), ~~html~~
10141014
- **Attributes:** activeTabIndex, editorActiveTabIndex
10151015

10161016
## Tag Cloud

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer
4747
- `blockGap`: `true`
4848
- `margin`: `true`
4949
- `padding`: `true`
50+
- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
51+
- `minWidth`: `true`
5052
- [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow): `true`
5153
- [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
5254
- [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true`

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"margin": true,
5656
"padding": true
5757
},
58+
"dimensions": {
59+
"minWidth": true
60+
},
5861
"shadow": true,
5962
"typography": {
6063
"fontSize": true,

0 commit comments

Comments
 (0)