-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details Block: Remove experimental flag and stabilize (#50997)
* Details Block: Enable by default on Gutenberg plugin without opt-in * Add fixture * Stabilize the block
- Loading branch information
Showing
9 changed files
with
60 additions
and
20 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
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,7 @@ | ||
<!-- wp:details {"summary":"Details Summary"} --> | ||
<details class="wp-block-details"><summary>Details Summary</summary> | ||
<!-- wp:paragraph {"placeholder":"Type / to add a hidden block"} --> | ||
<p>Details Content</p> | ||
<!-- /wp:paragraph --> | ||
</details> | ||
<!-- /wp:details --> |
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,22 @@ | ||
[ | ||
{ | ||
"name": "core/details", | ||
"isValid": true, | ||
"attributes": { | ||
"showContent": false, | ||
"summary": "Details Summary" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"name": "core/paragraph", | ||
"isValid": true, | ||
"attributes": { | ||
"content": "Details Content", | ||
"dropCap": false, | ||
"placeholder": "Type / to add a hidden block" | ||
}, | ||
"innerBlocks": [] | ||
} | ||
] | ||
} | ||
] |
25 changes: 25 additions & 0 deletions
25
test/integration/fixtures/blocks/core__details.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,25 @@ | ||
[ | ||
{ | ||
"blockName": "core/details", | ||
"attrs": { | ||
"summary": "Details Summary" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"blockName": "core/paragraph", | ||
"attrs": { | ||
"placeholder": "Type / to add a hidden block" | ||
}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n\t<p>Details Content</p>\n\t", | ||
"innerContent": [ "\n\t<p>Details Content</p>\n\t" ] | ||
} | ||
], | ||
"innerHTML": "\n<details class=\"wp-block-details\"><summary>Details Summary</summary>\n\t\n</details>\n", | ||
"innerContent": [ | ||
"\n<details class=\"wp-block-details\"><summary>Details Summary</summary>\n\t", | ||
null, | ||
"\n</details>\n" | ||
] | ||
} | ||
] |
5 changes: 5 additions & 0 deletions
5
test/integration/fixtures/blocks/core__details.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,5 @@ | ||
<!-- wp:details {"summary":"Details Summary"} --> | ||
<details class="wp-block-details"><summary>Details Summary</summary><!-- wp:paragraph {"placeholder":"Type / to add a hidden block"} --> | ||
<p>Details Content</p> | ||
<!-- /wp:paragraph --></details> | ||
<!-- /wp:details --> |
0488e29
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.
Flaky tests detected in 0488e29.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5097756566
📝 Reported issues:
/test/e2e/specs/editor/blocks/navigation.spec.js
/test/e2e/specs/site-editor/style-book.spec.js