Skip to content

Commit fce2a6b

Browse files
refactor: update tab block titles to reflect WCAG Tabs pattern and build docs
1 parent 7e20b84 commit fce2a6b

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/reference-guides/core-blocks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ Add white space between blocks and customize its height. ([Source](https://githu
988988
- **Supports:** anchor, interactivity (clientNavigation), spacing (margin)
989989
- **Attributes:** height, width
990990

991-
## Tab
991+
## Tab Panel
992992

993993
Content for a tab in a tabbed interface. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tab))
994994

@@ -999,7 +999,7 @@ Content for a tab in a tabbed interface. ([Source](https://github.com/WordPress/
999999
- **Supports:** anchor, color (background, text), layout, renaming, spacing (blockGap, padding, ~~margin~~), typography (fontSize), ~~html~~, ~~reusable~~, ~~visibility~~
10001000
- **Attributes:** label
10011001

1002-
## Tab Panel
1002+
## Tab Panels
10031003

10041004
Container for tab panel content in a tabbed interface. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tab-panel))
10051005

@@ -1040,7 +1040,7 @@ Display content in a tabbed interface to help users navigate detailed content wi
10401040
- **Supports:** align, anchor, color (background, text), interactivity, layout (allowJustification, allowOrientation, allowSizingOnChildren, allowVerticalAlignment, default, ~~allowSwitching~~), renaming, spacing (blockGap, margin, padding), typography (fontSize), ~~html~~
10411041
- **Attributes:** activeTabIndex, editorActiveTabIndex
10421042

1043-
## Tabs Menu
1043+
## Tab List
10441044

10451045
Display the tab buttons for a tabbed interface. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tabs-menu))
10461046

@@ -1051,7 +1051,7 @@ Display the tab buttons for a tabbed interface. ([Source](https://github.com/Wor
10511051
- **Allowed Blocks:** core/tabs-menu-item
10521052
- **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~~
10531053

1054-
## Tab Menu Item
1054+
## Tab
10551055

10561056
A single tab button in the tabs menu. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/tabs-menu-item))
10571057

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"__experimental": true,
44
"apiVersion": 3,
55
"name": "core/tab-panel",
6-
"title": "Tab Panel",
6+
"title": "Tab Panels",
77
"description": "Container for tab panel content in a tabbed interface.",
88
"version": "1.0.0",
99
"category": "design",

packages/block-library/src/tab/add-tab-toolbar-control.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function AddTabToolbarControl( { tabsClientId } ) {
5252
}
5353

5454
const newTabBlock = createBlock( 'core/tab', {
55-
label: __( 'Tab' ),
55+
label: __( 'Tab Panel' ),
5656
} );
5757
insertBlock( newTabBlock, undefined, tabPanelClientId );
5858

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"__experimental": true,
44
"apiVersion": 3,
55
"name": "core/tab",
6-
"title": "Tab",
6+
"title": "Tab Panel",
77
"description": "Content for a tab in a tabbed interface.",
88
"version": "1.0.0",
99
"category": "design",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"__experimental": true,
44
"apiVersion": 3,
55
"name": "core/tabs-menu-item",
6-
"title": "Tab Menu Item",
6+
"title": "Tab",
77
"description": "A single tab button in the tabs menu.",
88
"version": "1.0.0",
99
"category": "design",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"__experimental": true,
44
"apiVersion": 3,
55
"name": "core/tabs-menu",
6-
"title": "Tabs Menu",
6+
"title": "Tab List",
77
"description": "Display the tab buttons for a tabbed interface.",
88
"version": "1.0.0",
99
"category": "design",

0 commit comments

Comments
 (0)