-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename section block to group #14920
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "core/section", | ||
"name": "core/group", | ||
"category": "layout", | ||
"attributes": { | ||
"backgroundColor": { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ import * as pullquote from './pullquote'; | |
import * as reusableBlock from './block'; | ||
import * as rss from './rss'; | ||
import * as search from './search'; | ||
import * as section from './section'; | ||
import * as group from './group'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can it be moved to be sorted alphabetically? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 done |
||
import * as separator from './separator'; | ||
import * as shortcode from './shortcode'; | ||
import * as spacer from './spacer'; | ||
|
@@ -108,7 +108,7 @@ export const registerCoreBlocks = () => { | |
pullquote, | ||
rss, | ||
search, | ||
section, | ||
group, | ||
separator, | ||
reusableBlock, | ||
spacer, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -303,8 +303,8 @@ export const EXPECTED_TRANSFORMS = { | |
originalBlock: 'Search', | ||
availableTransforms: [], | ||
}, | ||
core__section: { | ||
originalBlock: 'Section', | ||
core__group: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can it be moved to be sorted alphabetically? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 done |
||
originalBlock: 'Group', | ||
availableTransforms: [], | ||
}, | ||
core__separator: { | ||
|
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 --> |
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.
This file was deleted.
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 -->" | ||
`; |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be moved to be sorted alphabetically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 done