From 52eaca06fd7352a5a9bae2306f363fda03dcfa3b Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 24 Apr 2026 19:23:35 +0900 Subject: [PATCH 1/6] Tabs: Lock orientation to horizontal and prune redundant block supports Disable layout editing on the Tabs block so users can no longer switch between horizontal and vertical orientations, and drop the supporting is-vertical detection in PHP/view keyboard handling that becomes unreachable as a result. Also strip block support settings that already match their defaults (reusable on parent-bound child blocks, dimensions with all features off, anchor:false, spacing.margin:false, renaming:true) to keep the block.json files focused on intentional overrides. Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/reference-guides/core-blocks.md | 10 ++++---- .../block-library/src/tab-list/block.json | 20 +++------------ .../block-library/src/tab-panel/block.json | 5 +--- .../block-library/src/tab-panels/block.json | 25 +------------------ packages/block-library/src/tab/block.json | 1 - packages/block-library/src/tabs/block.json | 16 ++---------- packages/block-library/src/tabs/edit.js | 6 +---- packages/block-library/src/tabs/index.php | 13 ---------- packages/block-library/src/tabs/view.js | 12 ++------- 9 files changed, 16 insertions(+), 92 deletions(-) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 963365ecb67501..4682bc45d4058e 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -996,7 +996,7 @@ A single tab button in the tab list. ([Source](https://github.com/WordPress/gute - **Experimental:** true - **Category:** design - **Parent:** core/tab-list -- **Supports:** color (background, text), spacing (padding), typography (fontSize, textAlign), ~~html~~, ~~lock~~, ~~reusable~~, ~~visibility~~ +- **Supports:** color (background, text), spacing (padding), typography (fontSize, textAlign), ~~html~~, ~~lock~~, ~~visibility~~ ## Tab List @@ -1007,7 +1007,7 @@ Display the tab buttons for a tabbed interface. ([Source](https://github.com/Wor - **Category:** design - **Parent:** core/tabs - **Allowed Blocks:** core/tab -- **Supports:** color (background, text), dimensions (~~aspectRatio~~, ~~height~~, ~~minHeight~~, ~~width~~), layout (allowJustification, allowOrientation, allowVerticalAlignment, default, ~~allowSwitching~~), spacing (blockGap, margin, padding), typography (fontSize), ~~html~~, ~~lock~~, ~~reusable~~, ~~visibility~~ +- **Supports:** color (background, text), layout (default, ~~allowOrientation~~, ~~allowVerticalAlignment~~, ~~allowWrap~~), spacing (blockGap, padding), typography (fontSize), ~~html~~, ~~lock~~, ~~visibility~~ ## Tab Panel @@ -1017,7 +1017,7 @@ Content for a tab in a tabbed interface. ([Source](https://github.com/WordPress/ - **Experimental:** true - **Category:** design - **Parent:** core/tab-panels -- **Supports:** anchor, color (background, text), layout, renaming, spacing (blockGap, padding, ~~margin~~), typography (fontSize), ~~html~~, ~~reusable~~, ~~visibility~~ +- **Supports:** anchor, color (background, text), layout, spacing (blockGap, padding), typography (fontSize), ~~html~~, ~~visibility~~ - **Attributes:** label ## Tab Panels @@ -1029,7 +1029,7 @@ Container for tab panel content in a tabbed interface. ([Source](https://github. - **Category:** design - **Parent:** core/tabs - **Allowed Blocks:** core/tab-panel -- **Supports:** color (background, heading, link, text), dimensions (~~aspectRatio~~, ~~height~~, ~~minHeight~~, ~~width~~), layout (allowJustification, default, ~~allowOrientation~~, ~~allowSizingOnChildren~~, ~~allowSwitching~~, ~~allowVerticalAlignment~~), spacing (margin, padding, ~~blockGap~~), typography (fontSize), ~~anchor~~, ~~html~~, ~~lock~~, ~~reusable~~, ~~visibility~~ +- **Supports:** color (background, heading, link, text), spacing (padding), typography (fontSize), ~~html~~, ~~lock~~, ~~visibility~~ ## Table @@ -1058,7 +1058,7 @@ Display content in a tabbed interface to help users navigate detailed content wi - **Experimental:** true - **Category:** design - **Allowed Blocks:** core/tab-list, core/tab-panels -- **Supports:** align, anchor, color (background, text), interactivity, layout (allowJustification, allowOrientation, allowSizingOnChildren, allowVerticalAlignment, default, ~~allowSwitching~~), renaming, spacing (blockGap, margin, padding), typography (fontSize), ~~html~~ +- **Supports:** align, anchor, color (background, text), interactivity, layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize), ~~html~~ - **Attributes:** activeTabIndex, editorActiveTabIndex ## Tag Cloud diff --git a/packages/block-library/src/tab-list/block.json b/packages/block-library/src/tab-list/block.json index 3121d611012881..bb20fb20a42fc6 100644 --- a/packages/block-library/src/tab-list/block.json +++ b/packages/block-library/src/tab-list/block.json @@ -13,15 +13,8 @@ "attributes": {}, "supports": { "html": false, - "reusable": false, "visibility": false, "lock": false, - "dimensions": { - "aspectRatio": false, - "height": false, - "minHeight": false, - "width": false - }, "color": { "background": true, "text": true, @@ -42,22 +35,17 @@ }, "layout": { "default": { - "type": "flex", - "flexWrap": "nowrap", - "orientation": "horizontal" + "type": "flex" }, - "allowSwitching": false, - "allowVerticalAlignment": true, - "allowJustification": true, - "allowOrientation": true + "allowVerticalAlignment": false, + "allowOrientation": false, + "allowWrap": false }, "spacing": { "padding": true, - "margin": true, "blockGap": true, "__experimentalDefaultControls": { "padding": true, - "margin": true, "blockGap": true } } diff --git a/packages/block-library/src/tab-panel/block.json b/packages/block-library/src/tab-panel/block.json index 3bb6c2814b5868..15b3f9283e90a3 100644 --- a/packages/block-library/src/tab-panel/block.json +++ b/packages/block-library/src/tab-panel/block.json @@ -22,7 +22,6 @@ "supports": { "anchor": true, "html": false, - "reusable": false, "color": { "background": true, "text": true, @@ -34,8 +33,7 @@ "layout": true, "spacing": { "blockGap": true, - "padding": true, - "margin": false + "padding": true }, "typography": { "fontSize": true, @@ -45,7 +43,6 @@ "__experimentalFontFamily": true } }, - "renaming": true, "visibility": false }, "providesContext": { diff --git a/packages/block-library/src/tab-panels/block.json b/packages/block-library/src/tab-panels/block.json index 9349999617a7ab..8697373ea1000b 100644 --- a/packages/block-library/src/tab-panels/block.json +++ b/packages/block-library/src/tab-panels/block.json @@ -11,17 +11,9 @@ "allowedBlocks": [ "core/tab-panel" ], "attributes": {}, "supports": { - "anchor": false, "html": false, - "reusable": false, "visibility": false, "lock": false, - "dimensions": { - "aspectRatio": false, - "height": false, - "minHeight": false, - "width": false - }, "color": { "background": true, "text": true, @@ -33,27 +25,12 @@ } }, "spacing": { - "blockGap": false, - "padding": true, - "margin": true + "padding": true }, "typography": { "fontSize": true, "__experimentalFontFamily": true }, - "layout": { - "default": { - "type": "flex", - "flexWrap": "nowrap", - "justifyContent": "stretch", - "orientation": "vertical" - }, - "allowSwitching": false, - "allowVerticalAlignment": false, - "allowOrientation": false, - "allowJustification": true, - "allowSizingOnChildren": false - }, "__experimentalBorder": { "radius": true, "color": true, diff --git a/packages/block-library/src/tab/block.json b/packages/block-library/src/tab/block.json index e64a6b36b9cdc1..3383366ad24f36 100644 --- a/packages/block-library/src/tab/block.json +++ b/packages/block-library/src/tab/block.json @@ -18,7 +18,6 @@ ], "supports": { "html": false, - "reusable": false, "visibility": false, "lock": false, "color": { diff --git a/packages/block-library/src/tabs/block.json b/packages/block-library/src/tabs/block.json index b35e14d4f33502..ce028cce628257 100644 --- a/packages/block-library/src/tabs/block.json +++ b/packages/block-library/src/tabs/block.json @@ -30,18 +30,7 @@ } }, "layout": { - "default": { - "type": "flex", - "flexWrap": "nowrap", - "justifyContent": "stretch", - "verticalAlignment": "stretch", - "orientation": "vertical" - }, - "allowSwitching": false, - "allowVerticalAlignment": true, - "allowJustification": true, - "allowOrientation": true, - "allowSizingOnChildren": true + "allowEditing": false }, "html": false, "interactivity": true, @@ -53,8 +42,7 @@ "typography": { "fontSize": true, "__experimentalFontFamily": true - }, - "renaming": true + } }, "providesContext": { "core/tabs-activeTabIndex": "activeTabIndex", diff --git a/packages/block-library/src/tabs/edit.js b/packages/block-library/src/tabs/edit.js index cfb3fd102a001e..5a5de44c566be9 100644 --- a/packages/block-library/src/tabs/edit.js +++ b/packages/block-library/src/tabs/edit.js @@ -128,11 +128,7 @@ function Edit( { clientId, attributes, setAttributes } ) { return (
- + { innerBlockProps.children }
diff --git a/packages/block-library/src/tabs/index.php b/packages/block-library/src/tabs/index.php index 59842ac6141239..33e04e576e509f 100644 --- a/packages/block-library/src/tabs/index.php +++ b/packages/block-library/src/tabs/index.php @@ -96,30 +96,17 @@ function block_core_tabs_render_block_callback( array $attributes, string $conte return ''; } - $is_vertical = false; - $tag_processor = new WP_HTML_Tag_Processor( $content ); $tag_processor->next_tag( array( 'class_name' => 'wp-block-tabs' ) ); $tag_processor->set_attribute( 'data-wp-interactive', 'core/tabs/private' ); - // Inspect inside the tab-list to see if its vertical or not. - $tag_processor->set_bookmark( 'core/tabs_wrapper' ); - while ( $tag_processor->next_tag( array( 'class_name' => 'wp-block-tabs-list' ) ) ) { - if ( $tag_processor->has_class( 'is-vertical' ) ) { - $is_vertical = true; - break; - } - } - $tag_processor->seek( 'core/tabs_wrapper' ); - $tag_processor->set_attribute( 'data-wp-context', wp_json_encode( array( 'tabsId' => $tabs_id, 'activeTabIndex' => $active_tab_index, - 'isVertical' => $is_vertical, ) ) ); diff --git a/packages/block-library/src/tabs/view.js b/packages/block-library/src/tabs/view.js index 4aba2d0b7b36a8..66cc3e0bd3ace3 100644 --- a/packages/block-library/src/tabs/view.js +++ b/packages/block-library/src/tabs/view.js @@ -102,24 +102,16 @@ const { actions: privateActions, state: privateState } = store( * @param {KeyboardEvent} event The keydown event. */ handleTabKeyDown: withSyncEvent( ( event ) => { - const context = getContext(); - const { isVertical } = context; const { tabIndex } = privateState; if ( tabIndex === null ) { return; } - if ( event.key === 'ArrowRight' && ! isVertical ) { - event.preventDefault(); - privateActions.moveFocus( tabIndex + 1 ); - } else if ( event.key === 'ArrowLeft' && ! isVertical ) { - event.preventDefault(); - privateActions.moveFocus( tabIndex - 1 ); - } else if ( event.key === 'ArrowDown' && isVertical ) { + if ( event.key === 'ArrowRight' ) { event.preventDefault(); privateActions.moveFocus( tabIndex + 1 ); - } else if ( event.key === 'ArrowUp' && isVertical ) { + } else if ( event.key === 'ArrowLeft' ) { event.preventDefault(); privateActions.moveFocus( tabIndex - 1 ); } From 7ef5211f71924b3b27103e38bc307fbcc2211118 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 24 Apr 2026 19:41:28 +0900 Subject: [PATCH 2/6] Tabs: Remove dead CSS left over from orientation switching With horizontal orientation now the only supported layout and the flex container removed from tab-panels, the flex-child sizing overrides, box-sizing resets, and first/last-child margin resets on tab-panel and tab no longer have any effect. The tab-list and tab editor styles were also matching selectors that never exist with the current useBlockProps API. Drop the dead rules and the now-empty editor/style stylesheets to avoid shipping CSS that does nothing. --- packages/block-library/src/tab-list/block.json | 3 +-- packages/block-library/src/tab-list/editor.scss | 10 ---------- packages/block-library/src/tab-panel/style.scss | 17 ----------------- .../block-library/src/tab-panels/block.json | 3 +-- .../block-library/src/tab-panels/style.scss | 4 ---- packages/block-library/src/tab/block.json | 1 - packages/block-library/src/tab/editor.scss | 14 -------------- packages/block-library/src/tab/style.scss | 5 ----- 8 files changed, 2 insertions(+), 55 deletions(-) delete mode 100644 packages/block-library/src/tab-list/editor.scss delete mode 100644 packages/block-library/src/tab-panels/style.scss delete mode 100644 packages/block-library/src/tab/editor.scss diff --git a/packages/block-library/src/tab-list/block.json b/packages/block-library/src/tab-list/block.json index bb20fb20a42fc6..f701b0404afe8b 100644 --- a/packages/block-library/src/tab-list/block.json +++ b/packages/block-library/src/tab-list/block.json @@ -50,6 +50,5 @@ } } }, - "editorScript": "file:./index.js", - "editorStyle": "file:./editor.css" + "editorScript": "file:./index.js" } diff --git a/packages/block-library/src/tab-list/editor.scss b/packages/block-library/src/tab-list/editor.scss deleted file mode 100644 index 1215ef864cf498..00000000000000 --- a/packages/block-library/src/tab-list/editor.scss +++ /dev/null @@ -1,10 +0,0 @@ -.wp-block-tab-list { - // Allow the inner block list to be displayed in the flex layout, so the tab buttons appear as direct flex children in the editor. - > .block-editor-block-list__layout { - display: contents; - } - - .block-editor-block-list__block:has(> .wp-block-tab) { - display: contents; - } -} diff --git a/packages/block-library/src/tab-panel/style.scss b/packages/block-library/src/tab-panel/style.scss index 509020336c1926..495a6c37ea8a24 100644 --- a/packages/block-library/src/tab-panel/style.scss +++ b/packages/block-library/src/tab-panel/style.scss @@ -1,23 +1,6 @@ .wp-block-tab-panel { - max-width: 100%; - flex-basis: 100%; - flex-grow: 1; - box-sizing: border-box; - - & > *:first-child { - margin-top: 0; - } - & > *:last-child { - margin-bottom: 0; - } - &[hidden], &:empty { display: none !important; } } - -.wp-block-tab-panel.wp-block.has-background, -.wp-block-tab-panel:not(.wp-block).has-background { - padding: var(--wp--preset--spacing--30); -} diff --git a/packages/block-library/src/tab-panels/block.json b/packages/block-library/src/tab-panels/block.json index 8697373ea1000b..c8d5f0aa26a484 100644 --- a/packages/block-library/src/tab-panels/block.json +++ b/packages/block-library/src/tab-panels/block.json @@ -38,6 +38,5 @@ "style": true } }, - "editorScript": "file:./index.js", - "style": "file:./style-index.css" + "editorScript": "file:./index.js" } diff --git a/packages/block-library/src/tab-panels/style.scss b/packages/block-library/src/tab-panels/style.scss deleted file mode 100644 index 51159d6f86a22a..00000000000000 --- a/packages/block-library/src/tab-panels/style.scss +++ /dev/null @@ -1,4 +0,0 @@ -.wp-block-tab-panels { - flex-grow: 1; - min-width: 0; -} diff --git a/packages/block-library/src/tab/block.json b/packages/block-library/src/tab/block.json index 3383366ad24f36..1df49b79442bae 100644 --- a/packages/block-library/src/tab/block.json +++ b/packages/block-library/src/tab/block.json @@ -50,6 +50,5 @@ } }, "editorScript": "file:./index.js", - "editorStyle": "file:./editor.css", "style": "file:./style-index.css" } diff --git a/packages/block-library/src/tab/editor.scss b/packages/block-library/src/tab/editor.scss deleted file mode 100644 index 3fb5a5fe50bbd3..00000000000000 --- a/packages/block-library/src/tab/editor.scss +++ /dev/null @@ -1,14 +0,0 @@ -.wp-block-tab { - &.is-selected { - outline-offset: 2px; - } -} - -.block-editor-block-preview__live-content:has(.wp-block-tab) { - flex-basis: inherit !important; - flex-grow: inherit !important; - - .wp-block-tab { - flex-basis: 100% !important; - } -} diff --git a/packages/block-library/src/tab/style.scss b/packages/block-library/src/tab/style.scss index 1b62f2a0675a1b..4a8f0731f2a0eb 100644 --- a/packages/block-library/src/tab/style.scss +++ b/packages/block-library/src/tab/style.scss @@ -1,12 +1,7 @@ .wp-block-tab { - box-sizing: border-box; color: inherit; - display: block; - width: max-content; text-decoration: none; cursor: pointer; - flex-basis: inherit !important; - flex-grow: inherit !important; position: relative; // Button reset From a1dcbc1b84994e9ed27d7aa4d8a4f48c36102ac7 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 24 Apr 2026 19:52:25 +0900 Subject: [PATCH 3/6] Tabs: Drop @use references to deleted stylesheets The previous commit removed tab-list/editor.scss, tab/editor.scss, and tab-panels/style.scss but left their @use imports in the block-library aggregate stylesheets, which breaks SCSS compilation. --- packages/block-library/src/editor.scss | 2 -- packages/block-library/src/style.scss | 1 - 2 files changed, 3 deletions(-) diff --git a/packages/block-library/src/editor.scss b/packages/block-library/src/editor.scss index 4e71d5a1cc9294..d7eb47de3e0502 100644 --- a/packages/block-library/src/editor.scss +++ b/packages/block-library/src/editor.scss @@ -49,8 +49,6 @@ @use "./social-links/editor.scss" as *; @use "./spacer/editor.scss" as *; @use "./table/editor.scss" as *; -@use "./tab-list/editor.scss" as *; -@use "./tab/editor.scss" as *; @use "./template-part/editor.scss" as *; @use "./term-template/editor.scss" as *; @use "./text-columns/editor.scss" as *; diff --git a/packages/block-library/src/style.scss b/packages/block-library/src/style.scss index ecd5fc15bb99ae..17f7032f595b64 100644 --- a/packages/block-library/src/style.scss +++ b/packages/block-library/src/style.scss @@ -76,7 +76,6 @@ @use "./tag-cloud/style.scss" as *; @use "./tab/style.scss" as *; @use "./tab-panel/style.scss" as *; -@use "./tab-panels/style.scss" as *; @use "./table/style.scss" as *; @use "./table-of-contents/style.scss" as *; @use "./tabs/style.scss" as *; From 4b9cda6128982522168f677dfed4c77b1cbabc40 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Mon, 4 May 2026 17:27:50 +0900 Subject: [PATCH 4/6] Tabs: Align block.json asset fields with core block conventions The tab-related blocks declared editorScript and CSS assets via file:./ paths, while every other core block relies on the wp-block-{name}/wp-block-{name}-editor handles auto-registered by gutenberg_register_core_block_assets() and omits editorScript entirely. Drop the editorScript fields, replace the file:./ style references with the standard handle names, and remove the editorStyle entry on tabs since no editor.scss exists for it. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/block-library/src/tab-list/block.json | 3 +-- packages/block-library/src/tab-panel/block.json | 3 +-- packages/block-library/src/tab-panels/block.json | 3 +-- packages/block-library/src/tab/block.json | 3 +-- packages/block-library/src/tabs/block.json | 4 +--- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/packages/block-library/src/tab-list/block.json b/packages/block-library/src/tab-list/block.json index f701b0404afe8b..2fa3e6520e2c29 100644 --- a/packages/block-library/src/tab-list/block.json +++ b/packages/block-library/src/tab-list/block.json @@ -49,6 +49,5 @@ "blockGap": true } } - }, - "editorScript": "file:./index.js" + } } diff --git a/packages/block-library/src/tab-panel/block.json b/packages/block-library/src/tab-panel/block.json index 15b3f9283e90a3..c9745bc3267050 100644 --- a/packages/block-library/src/tab-panel/block.json +++ b/packages/block-library/src/tab-panel/block.json @@ -48,6 +48,5 @@ "providesContext": { "core/tab-label": "label" }, - "editorScript": "file:./index.js", - "style": "file:./style-index.css" + "style": "wp-block-tab-panel" } diff --git a/packages/block-library/src/tab-panels/block.json b/packages/block-library/src/tab-panels/block.json index c8d5f0aa26a484..7e6a6139ed9ae2 100644 --- a/packages/block-library/src/tab-panels/block.json +++ b/packages/block-library/src/tab-panels/block.json @@ -37,6 +37,5 @@ "width": true, "style": true } - }, - "editorScript": "file:./index.js" + } } diff --git a/packages/block-library/src/tab/block.json b/packages/block-library/src/tab/block.json index 1df49b79442bae..85e62aa9acd829 100644 --- a/packages/block-library/src/tab/block.json +++ b/packages/block-library/src/tab/block.json @@ -49,6 +49,5 @@ "style": true } }, - "editorScript": "file:./index.js", - "style": "file:./style-index.css" + "style": "wp-block-tab" } diff --git a/packages/block-library/src/tabs/block.json b/packages/block-library/src/tabs/block.json index ce028cce628257..e09b6f12409e24 100644 --- a/packages/block-library/src/tabs/block.json +++ b/packages/block-library/src/tabs/block.json @@ -49,8 +49,6 @@ "core/tabs-editorActiveTabIndex": "editorActiveTabIndex" }, "usesContext": [ "core/tabs-list", "core/tabs-id" ], - "editorScript": "file:./index.js", - "editorStyle": "file:./index.css", - "style": "file:./style-index.css", + "style": "wp-block-tabs", "viewScriptModule": "@wordpress/block-library/tabs/view" } From 55e1b7049b09e4228b0daaa4e022e3fd6d58782a Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Thu, 21 May 2026 17:43:51 +0900 Subject: [PATCH 5/6] Tabs: Remove unused setAttributes prop from Edit component The Edit component no longer writes any attributes, so destructuring setAttributes is dead code. Drop it to keep the props minimal. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/block-library/src/tabs/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/tabs/edit.js b/packages/block-library/src/tabs/edit.js index d2a5ca39237d9d..36ff8b70aa4f73 100644 --- a/packages/block-library/src/tabs/edit.js +++ b/packages/block-library/src/tabs/edit.js @@ -32,7 +32,7 @@ const EMPTY_ARRAY = []; */ const TABS_TEMPLATE = [ [ 'core/tab-list' ], [ 'core/tab-panels' ] ]; -function Edit( { clientId, attributes, setAttributes } ) { +function Edit( { clientId, attributes } ) { const { anchor, activeTabIndex, editorActiveTabIndex } = attributes; const { tabPanels, tabPanelsClientId, tabs, tabListClientId } = useSelect( From 88aac5459a2afb9b47b3b5ff8d8442010d9f8c0e Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Mon, 8 Jun 2026 20:32:40 +0900 Subject: [PATCH 6/6] Docs: Regenerate tab block reference pages after supports simplification Sync the auto-generated per-block API reference pages with the simplified layout/supports definitions in the tab blocks' block.json, following trunk's move to block.json-driven docs (#77612). Co-Authored-By: Claude Opus 4.8 (1M context) --- docs/reference-guides/core-blocks/README.md | 10 +++++----- packages/block-library/src/tab-list/README.md | 16 ++++------------ packages/block-library/src/tab-panel/README.md | 3 --- packages/block-library/src/tab-panels/README.md | 16 ---------------- packages/block-library/src/tab/README.md | 1 - packages/block-library/src/tabs/README.md | 8 +------- 6 files changed, 10 insertions(+), 44 deletions(-) diff --git a/docs/reference-guides/core-blocks/README.md b/docs/reference-guides/core-blocks/README.md index 19523ee5a5666f..7be30bd026173b 100644 --- a/docs/reference-guides/core-blocks/README.md +++ b/docs/reference-guides/core-blocks/README.md @@ -1006,7 +1006,7 @@ A single tab button in the tab list. - **Experimental:** true - **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/) - **Parent:** core/tab-list -- **Supports:** color (background, text), spacing (padding), typography (fontSize, textAlign), ~~html~~, ~~lock~~, ~~reusable~~, ~~visibility~~ +- **Supports:** color (background, text), spacing (padding), typography (fontSize, textAlign), ~~html~~, ~~lock~~, ~~visibility~~ ## Tab List @@ -1017,7 +1017,7 @@ Display the tab buttons for a tabbed interface. - **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/) - **Parent:** core/tabs - **Allowed Blocks:** core/tab -- **Supports:** color (background, text), dimensions (~~aspectRatio~~, ~~height~~, ~~minHeight~~, ~~width~~), layout (allowJustification, allowOrientation, allowVerticalAlignment, default, ~~allowSwitching~~), spacing (blockGap, margin, padding), typography (fontSize), ~~html~~, ~~lock~~, ~~reusable~~, ~~visibility~~ +- **Supports:** color (background, text), layout (default, ~~allowOrientation~~, ~~allowVerticalAlignment~~, ~~allowWrap~~), spacing (blockGap, padding), typography (fontSize), ~~html~~, ~~lock~~, ~~visibility~~ ## Tab Panel @@ -1027,7 +1027,7 @@ Content for a tab in a tabbed interface. - **Experimental:** true - **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/) - **Parent:** core/tab-panels -- **Supports:** anchor, color (background, text), layout, renaming, spacing (blockGap, padding, ~~margin~~), typography (fontSize), ~~html~~, ~~reusable~~, ~~visibility~~ +- **Supports:** anchor, color (background, text), layout, spacing (blockGap, padding), typography (fontSize), ~~html~~, ~~visibility~~ - **Attributes:** label ## Tab Panels @@ -1039,7 +1039,7 @@ Container for tab panel content in a tabbed interface. - **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/) - **Parent:** core/tabs - **Allowed Blocks:** core/tab-panel -- **Supports:** color (background, heading, link, text), dimensions (~~aspectRatio~~, ~~height~~, ~~minHeight~~, ~~width~~), layout (allowJustification, default, ~~allowOrientation~~, ~~allowSizingOnChildren~~, ~~allowSwitching~~, ~~allowVerticalAlignment~~), spacing (margin, padding, ~~blockGap~~), typography (fontSize), ~~anchor~~, ~~html~~, ~~lock~~, ~~reusable~~, ~~visibility~~ +- **Supports:** color (background, heading, link, text), spacing (padding), typography (fontSize), ~~html~~, ~~lock~~, ~~visibility~~ ## Table @@ -1068,7 +1068,7 @@ Display content in a tabbed interface to help users navigate detailed content wi - **Experimental:** true - **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/) - **Allowed Blocks:** core/tab-list, core/tab-panels -- **Supports:** align, anchor, color (background, text), interactivity, layout (allowJustification, allowOrientation, allowSizingOnChildren, allowVerticalAlignment, default, ~~allowSwitching~~), renaming, spacing (blockGap, margin, padding), typography (fontSize), ~~html~~ +- **Supports:** align, anchor, color (background, text), interactivity, layout (~~allowEditing~~), spacing (blockGap, margin, padding), typography (fontSize), ~~html~~ - **Attributes:** activeTabIndex, editorActiveTabIndex ## Tag Cloud diff --git a/packages/block-library/src/tab-list/README.md b/packages/block-library/src/tab-list/README.md index ff2007009554f5..15c300c4877269 100644 --- a/packages/block-library/src/tab-list/README.md +++ b/packages/block-library/src/tab-list/README.md @@ -29,28 +29,20 @@ _This block has no custom attributes._ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._ - [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false` -- [`reusable`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#reusable): `false` - [`visibility`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#visibility): `false` - [`lock`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#lock): `false` -- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions): - - `aspectRatio`: `false` - - `height`: `false` - - `minHeight`: `false` - - `width`: `false` - [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color): - [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-background): `true` - [`text`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-text): `true` - [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography): - [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true` - [`layout`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout): - - [`default`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-default): `{"type":"flex","flexWrap":"nowrap","orientation":"horizontal"}` - - [`allowSwitching`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowswitching): `false` - - [`allowVerticalAlignment`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowverticalalignment): `true` - - [`allowJustification`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowjustification): `true` - - [`allowOrientation`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-alloworientation): `true` + - [`default`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-default): `{"type":"flex"}` + - [`allowVerticalAlignment`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowverticalalignment): `false` + - [`allowOrientation`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-alloworientation): `false` + - [`allowWrap`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowwrap): `false` - [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing): - `padding`: `true` - - `margin`: `true` - `blockGap`: `true` ## Context diff --git a/packages/block-library/src/tab-panel/README.md b/packages/block-library/src/tab-panel/README.md index fd2305f704b829..944610f367cfb9 100644 --- a/packages/block-library/src/tab-panel/README.md +++ b/packages/block-library/src/tab-panel/README.md @@ -29,7 +29,6 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer - [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `true` - [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false` -- [`reusable`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#reusable): `false` - [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color): - [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-background): `true` - [`text`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-text): `true` @@ -37,10 +36,8 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer - [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing): - `blockGap`: `true` - `padding`: `true` - - `margin`: `false` - [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography): - [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true` -- [`renaming`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#renaming): `true` - [`visibility`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#visibility): `false` ## Context diff --git a/packages/block-library/src/tab-panels/README.md b/packages/block-library/src/tab-panels/README.md index 7d1d1a8e194f3c..bac8c2012ced97 100644 --- a/packages/block-library/src/tab-panels/README.md +++ b/packages/block-library/src/tab-panels/README.md @@ -28,34 +28,18 @@ _This block has no custom attributes._ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._ -- [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor): `false` - [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false` -- [`reusable`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#reusable): `false` - [`visibility`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#visibility): `false` - [`lock`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#lock): `false` -- [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions): - - `aspectRatio`: `false` - - `height`: `false` - - `minHeight`: `false` - - `width`: `false` - [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color): - [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-background): `true` - [`text`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-text): `true` - [`heading`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-heading): `true` - [`link`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-link): `true` - [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing): - - `blockGap`: `false` - `padding`: `true` - - `margin`: `true` - [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography): - [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true` -- [`layout`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout): - - [`default`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-default): `{"type":"flex","flexWrap":"nowrap","justifyContent":"stretch","orientation":"vertical"}` - - [`allowSwitching`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowswitching): `false` - - [`allowVerticalAlignment`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowverticalalignment): `false` - - [`allowOrientation`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-alloworientation): `false` - - [`allowJustification`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowjustification): `true` - - [`allowSizingOnChildren`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowsizingonchildren): `false` ## Block Markup diff --git a/packages/block-library/src/tab/README.md b/packages/block-library/src/tab/README.md index e6d4b9f0895b4c..91e3402a0afbea 100644 --- a/packages/block-library/src/tab/README.md +++ b/packages/block-library/src/tab/README.md @@ -26,7 +26,6 @@ _This block has no custom attributes._ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/) property in block.json._ - [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false` -- [`reusable`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#reusable): `false` - [`visibility`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#visibility): `false` - [`lock`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#lock): `false` - [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color): diff --git a/packages/block-library/src/tabs/README.md b/packages/block-library/src/tabs/README.md index 04a0e8bc66b013..b9242d5dc80d70 100644 --- a/packages/block-library/src/tabs/README.md +++ b/packages/block-library/src/tabs/README.md @@ -35,12 +35,7 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer - [`text`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-text): `true` - [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-background): `true` - [`layout`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout): - - [`default`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-default): `{"type":"flex","flexWrap":"nowrap","justifyContent":"stretch","verticalAlignment":"stretch","orientation":"vertical"}` - - [`allowSwitching`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowswitching): `false` - - [`allowVerticalAlignment`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowverticalalignment): `true` - - [`allowJustification`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowjustification): `true` - - [`allowOrientation`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-alloworientation): `true` - - [`allowSizingOnChildren`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowsizingonchildren): `true` + - [`allowEditing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowediting): `false` - [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html): `false` - [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity): `true` - [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing): @@ -49,7 +44,6 @@ _Defined via the [`supports`](https://developer.wordpress.org/block-editor/refer - `padding`: `true` - [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography): - [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize): `true` -- [`renaming`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#renaming): `true` ## Context