-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Heading: Add block classname deprecation (#46138)
- Loading branch information
1 parent
8be1039
commit d2bfddc
Showing
5 changed files
with
242 additions
and
136 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
3 changes: 3 additions & 0 deletions
3
test/integration/fixtures/blocks/core__heading__deprecated-5.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,3 @@ | ||
<!-- wp:heading {"textAlign":"right","textColor":"primary"} --> | ||
<h2 class="has-text-align-right has-primary-color has-text-color">Text</h2> | ||
<!-- /wp:heading --> |
13 changes: 13 additions & 0 deletions
13
test/integration/fixtures/blocks/core__heading__deprecated-5.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"name": "core/heading", | ||
"isValid": true, | ||
"attributes": { | ||
"textAlign": "right", | ||
"content": "Text", | ||
"level": 2, | ||
"textColor": "primary" | ||
}, | ||
"innerBlocks": [] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
test/integration/fixtures/blocks/core__heading__deprecated-5.parsed.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"blockName": "core/heading", | ||
"attrs": { | ||
"textAlign": "right", | ||
"textColor": "primary" | ||
}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n<h2 class=\"has-text-align-right has-primary-color has-text-color\">Text</h2>\n", | ||
"innerContent": [ | ||
"\n<h2 class=\"has-text-align-right has-primary-color has-text-color\">Text</h2>\n" | ||
] | ||
} | ||
] |
Oops, something went wrong.