Skip to content

Commit e39c06f

Browse files
t-hamanoMamadukajoedolsonscruffianannezazu
authored
Revert Tabs block to experimental block (#75572)
* Revert Tabs block to experimental block * Remove fixtures Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: joedolson <joedolson@git.wordpress.org> Co-authored-by: scruffian <scruffian@git.wordpress.org> Co-authored-by: annezazu <annezazu@git.wordpress.org> Co-authored-by: mikachan <mikachan@git.wordpress.org>
1 parent 35bbdc5 commit e39c06f

28 files changed

Lines changed: 21 additions & 465 deletions

docs/reference-guides/core-blocks.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ Add white space between blocks and customize its height. ([Source](https://githu
994994
Content for a tab in a tabbed interface. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tab))
995995

996996
- **Name:** core/tab
997+
- **Experimental:** true
997998
- **Category:** design
998999
- **Parent:** core/tab-panel
9991000
- **Supports:** anchor, color (background, text), layout, renaming, spacing (blockGap, padding, ~~margin~~), typography (fontSize), ~~html~~, ~~reusable~~
@@ -1004,6 +1005,7 @@ Content for a tab in a tabbed interface. ([Source](https://github.com/WordPress/
10041005
Container for tab panel content in a tabbed interface. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tab-panel))
10051006

10061007
- **Name:** core/tab-panel
1008+
- **Experimental:** true
10071009
- **Category:** design
10081010
- **Parent:** core/tabs
10091011
- **Allowed Blocks:** core/tab
@@ -1033,6 +1035,7 @@ Summarize your post with a list of headings. Add HTML anchors to Heading blocks
10331035
Display content in a tabbed interface to help users navigate detailed content with ease. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tabs))
10341036

10351037
- **Name:** core/tabs
1038+
- **Experimental:** true
10361039
- **Category:** design
10371040
- **Allowed Blocks:** core/tabs-menu, core/tab-panel
10381041
- **Supports:** align, anchor, color (background, text), interactivity, layout (allowJustification, allowOrientation, allowSizingOnChildren, allowVerticalAlignment, default, ~~allowSwitching~~), renaming, spacing (blockGap, margin, padding), typography (fontSize), ~~html~~
@@ -1043,6 +1046,7 @@ Display content in a tabbed interface to help users navigate detailed content wi
10431046
Display the tab buttons for a tabbed interface. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tabs-menu))
10441047

10451048
- **Name:** core/tabs-menu
1049+
- **Experimental:** true
10461050
- **Category:** design
10471051
- **Parent:** core/tabs
10481052
- **Allowed Blocks:** core/tabs-menu-item
@@ -1053,6 +1057,7 @@ Display the tab buttons for a tabbed interface. ([Source](https://github.com/Wor
10531057
A single tab button in the tabs menu. Used as a template for styling all tab buttons. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tabs-menu-item))
10541058

10551059
- **Name:** core/tabs-menu-item
1060+
- **Experimental:** true
10561061
- **Category:** design
10571062
- **Parent:** core/tabs-menu
10581063
- **Supports:** color (background, text), layout (~~allowEditing~~), shadow, spacing (padding), typography (fontSize, textAlign), ~~html~~, ~~lock~~, ~~reusable~~

packages/block-library/src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,6 @@ const getAllBlocks = () => {
276276
queryTitle,
277277
postAuthorBiography,
278278
breadcrumbs,
279-
tab,
280-
tabs,
281-
tabsMenu,
282-
tabsMenuItem,
283-
tabPanel,
284279
];
285280

286281
if ( window?.__experimentalEnableFormBlocks ) {
@@ -291,6 +286,11 @@ const getAllBlocks = () => {
291286
}
292287

293288
if ( window?.__experimentalEnableBlockExperiments ) {
289+
blocks.push( tab );
290+
blocks.push( tabs );
291+
blocks.push( tabsMenu );
292+
blocks.push( tabsMenuItem );
293+
blocks.push( tabPanel );
294294
blocks.push( playlist );
295295
blocks.push( playlistTrack );
296296
}

packages/block-library/src/tab-panel/block.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"__experimental": true,
34
"apiVersion": 3,
45
"name": "core/tab-panel",
56
"title": "Tab Panel",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"__experimental": true,
34
"apiVersion": 3,
45
"name": "core/tab",
56
"title": "Tab",

packages/block-library/src/tabs-menu-item/block.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"__experimental": true,
34
"apiVersion": 3,
45
"name": "core/tabs-menu-item",
56
"title": "Tab Menu Item",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"__experimental": true,
34
"apiVersion": 3,
45
"name": "core/tabs-menu",
56
"title": "Tabs Menu",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://schemas.wp.org/trunk/block.json",
3+
"__experimental": true,
34
"apiVersion": 3,
45
"name": "core/tabs",
56
"title": "Tabs",

test/integration/fixtures/blocks/core__post-terms__deprecated-v1.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"name": "core/post-terms",
44
"isValid": true,
55
"attributes": {
6-
"prefix": "",
6+
"term": "category",
77
"separator": ", ",
8+
"prefix": "",
89
"suffix": "",
9-
"term": "category",
1010
"style": {
1111
"typography": {
1212
"textAlign": "left"
@@ -19,10 +19,10 @@
1919
"name": "core/post-terms",
2020
"isValid": true,
2121
"attributes": {
22-
"prefix": "",
22+
"term": "category",
2323
"separator": ", ",
24+
"prefix": "",
2425
"suffix": "",
25-
"term": "category",
2626
"style": {
2727
"typography": {
2828
"textAlign": "center"
@@ -35,10 +35,10 @@
3535
"name": "core/post-terms",
3636
"isValid": true,
3737
"attributes": {
38-
"prefix": "",
38+
"term": "category",
3939
"separator": ", ",
40+
"prefix": "",
4041
"suffix": "",
41-
"term": "category",
4242
"style": {
4343
"typography": {
4444
"textAlign": "right"

test/integration/fixtures/blocks/core__tab-panel.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/integration/fixtures/blocks/core__tab-panel.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)