-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Accordion: Add example block preview #71365
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
Accordion: Add example block preview #71365
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
ca5da70 to
63acf80
Compare
Soean
left a comment
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.
Looks good, I have two minor suggestions:
- The content should be translatable. Please wrap the content in a
__( 'English text' )function. - We also should use a more generic or Lorem ipsum text. We can use the other blocks as a reference.
233024f to
2f1cb2f
Compare
I completely missed this one. Thanks, @Soean, for pointing this out. |
t-hamano
left a comment
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.
LGTM!
@himanshupathak95, can you rebase this PR on top of trunk before merging?
2f1cb2f to
f9ca7fd
Compare
* Accordion: Add example block preview * Accordion: Make example preview texts translatable and generic Co-authored-by: himanshupathak95 <[email protected]> Co-authored-by: Soean <[email protected]> Co-authored-by: t-hamano <[email protected]>
What?
Closes #71354
Updates the Accordion block preview to display two example headers.
Why?
Previously, the Accordion block preview was empty, making it difficult to visualize how accordion sections would appear. This change improves clarity for users by showing a more realistic example.
How?
Defines two
core/accordion-contentinner blocks in the Accordion block’sexamplefield, each with its own header.Testing Instructions
Blocks: add experimental blocks)Screenshots