forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename section block to group (WordPress#14920)
* Rename section block to group * Update transforms test for rename of section block to group * Alphabeticalize
- Loading branch information
Showing
19 changed files
with
86 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ages/block-library/src/section/block.json → packages/block-library/src/group/block.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "core/section", | ||
"name": "core/group", | ||
"category": "layout", | ||
"attributes": { | ||
"backgroundColor": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ages/block-library/src/section/theme.scss → packages/block-library/src/group/theme.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- wp:group {"backgroundColor":"secondary","align":"full"} --> | ||
<div class="wp-block-group alignfull has-secondary-background-color has-background"> | ||
<!-- wp:paragraph --> | ||
<p>This is a group block.</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>Group block content.</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/e2e-tests/fixtures/blocks/core__group.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- wp:group {"backgroundColor":"secondary","align":"full"} --> | ||
<div class="wp-block-group alignfull has-secondary-background-color has-background"><!-- wp:paragraph --> | ||
<p>This is a group block.</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>Group block content.</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group --> |
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/e2e-tests/fixtures/blocks/core__section.serialized.html
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/e2e-tests/specs/blocks/__snapshots__/group.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Group can be created using the block inserter 1`] = ` | ||
"<!-- wp:group --> | ||
<div class=\\"wp-block-group\\"><!-- wp:paragraph --> | ||
<p>Group block</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group -->" | ||
`; | ||
exports[`Group can be created using the slash inserter 1`] = ` | ||
"<!-- wp:group --> | ||
<div class=\\"wp-block-group\\"><!-- wp:paragraph --> | ||
<p>Group block</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:group -->" | ||
`; |
17 changes: 0 additions & 17 deletions
17
packages/e2e-tests/specs/blocks/__snapshots__/section.test.js.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters