Skip to content

Commit

Permalink
Block Library: Unify block title with a strict title case
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Jun 26, 2023
1 parent 48b30f4 commit e33934f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Create a bulleted or numbered list. ([Source](https://github.com/WordPress/guten
- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~
- **Attributes:** ordered, placeholder, reversed, start, type, values

## List item
## List Item

Create a list item. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/list-item))

Expand Down Expand Up @@ -482,7 +482,7 @@ Start with the basic building block of all narrative. ([Source](https://github.c
- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~className~~
- **Attributes:** align, content, direction, dropCap, placeholder

## Pattern placeholder
## Pattern Placeholder

Show a block pattern. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/pattern))

Expand Down Expand Up @@ -621,7 +621,7 @@ Post terms. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages
- **Supports:** color (background, gradients, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** prefix, separator, suffix, term, textAlign

## Time To Read
## Time to Read

Show minutes required to finish reading the post. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/post-time-to-read))

Expand Down Expand Up @@ -667,7 +667,7 @@ An advanced block that allows displaying post types based on different query par
- **Supports:** align (full, wide), layout, ~~html~~
- **Attributes:** namespace, query, queryId, tagName

## No results
## No Results

Contains the block elements used to render content when no query results are found. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/query-no-results))

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/list-item/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/list-item",
"title": "List item",
"title": "List Item",
"category": "text",
"parent": [ "core/list" ],
"description": "Create a list item.",
Expand Down
18 changes: 9 additions & 9 deletions packages/block-library/src/list/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe( 'List block', () => {

// Select List Item block
const [ listItemBlock ] = screen.getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
fireEvent.press( listItemBlock );

Expand Down Expand Up @@ -123,7 +123,7 @@ describe( 'List block', () => {

// Select List Item block
const [ firstNestedLevelBlock ] = within( listBlock ).getAllByLabelText(
/List item Block\. Row 2/
/List Item Block\. Row 2/
);
fireEvent.press( firstNestedLevelBlock );
await triggerBlockListLayout( firstNestedLevelBlock );
Expand Down Expand Up @@ -158,7 +158,7 @@ describe( 'List block', () => {

// Select Secont List Item block
const [ listItemBlock ] = screen.getAllByLabelText(
/List item Block\. Row 2/
/List Item Block\. Row 2/
);
fireEvent.press( listItemBlock );

Expand All @@ -168,7 +168,7 @@ describe( 'List block', () => {

// Await recently indented list item layout
const [ listItemBlock1 ] = screen.getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
await triggerBlockListLayout( listItemBlock1 );

Expand Down Expand Up @@ -202,7 +202,7 @@ describe( 'List block', () => {

// Select List Item block
const [ firstNestedLevelBlock ] = within( listBlock ).getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
fireEvent.press( firstNestedLevelBlock );
await triggerBlockListLayout( firstNestedLevelBlock );
Expand All @@ -216,7 +216,7 @@ describe( 'List block', () => {

// Select nested List Item block
const [ listItemBlock ] = within( innerBlockList ).getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
fireEvent.press( listItemBlock );

Expand Down Expand Up @@ -358,7 +358,7 @@ describe( 'List block', () => {

// Select List Item block
const [ listItemBlock ] = within( listBlock ).getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
fireEvent.press( listItemBlock );

Expand Down Expand Up @@ -407,7 +407,7 @@ describe( 'List block', () => {

// Select List Item block
const [ listItemBlock ] = within( listBlock ).getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
fireEvent.press( listItemBlock );

Expand Down Expand Up @@ -467,7 +467,7 @@ describe( 'List block', () => {

// Select List Item block
const [ listItemBlock ] = within( listBlock ).getAllByLabelText(
/List item Block\. Row 1/
/List Item Block\. Row 1/
);
fireEvent.press( listItemBlock );

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/pattern/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/pattern",
"title": "Pattern placeholder",
"title": "Pattern Placeholder",
"category": "theme",
"description": "Show a block pattern.",
"supports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/post-time-to-read/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"apiVersion": 3,
"__experimental": true,
"name": "core/post-time-to-read",
"title": "Time To Read",
"title": "Time to Read",
"category": "theme",
"description": "Show minutes required to finish reading the post.",
"textdomain": "default",
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/query-no-results/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "core/query-no-results",
"title": "No results",
"title": "No Results",
"category": "theme",
"description": "Contains the block elements used to render content when no query results are found.",
"parent": [ "core/query" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ const blockNames = {
image: 'Image',
latestPosts: 'Latest Posts',
list: 'List',
listItem: 'List item',
listItem: 'List Item',
more: 'More',
paragraph: 'Paragraph',
search: 'Search',
Expand Down

0 comments on commit e33934f

Please sign in to comment.