-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Accordion: Update block descriptions #72602
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
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. |
docs/reference-guides/core-blocks.md
Outdated
| ## Accordion Heading | ||
|
|
||
| Displays an accordion heading. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-heading)) | ||
| Displays a clickable heading that toggles the content panel open and closed. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-heading)) |
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.
I wonder if there's a term other than "clickable", especially since the "toggles" term shows up later. Perhaps something simple:
Toggles the accordion panel.
A bit bare, perhaps, but simple and maybe reads well.
|
Thanks for the PR. A good baseline here:
There's still something duplicative with these, and they all start with "Displays ...". I wonder if we can simplify a bit. Some brainstorming:
|
|
Thanks for taking a look, @jasmussen 🙇
The reason I kept this part was that it had been discussed previously to be more consistent with the starting verb in block descriptions, and "displays" seems to be favoured:
However, I'm not sure if we always have to use "displays", and combining this with your suggestions still works better, I think. Something like this, perhaps:
|
|
Go for it! |
4889160 to
8539fa0
Compare
|
Size Change: +26 B (0%) Total Size: 2.37 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 785ac2e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18844374511
|
* Update block descriptions * Update descriptions based on feedback * Attempt to fix test Co-authored-by: mikachan <[email protected]> Co-authored-by: jasmussen <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: db8510f |
| ## Accordion Heading | ||
|
|
||
| Displays an accordion heading. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-heading)) | ||
| Toggles the accordion panel. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/accordion-heading)) |
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.
The toggle also displays a heading though, should we have kept a hint for that?
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.
If it's meaningful to understand as part of the block description. My opinion was that it isn't, but that's not a strong opinion.
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.
I don't have a strong opinion either, but I think it's better if we clearly convey that it also renders the heading.
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.
I don't have a strong opinion either, but this block does display a heading, so perhaps it's best to mention it in the description. I'll open a quick PR.
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.
Updated the heading description here: #72777
What?
The Accordion block descriptions are currently quite duplicative (with the word "accordion") and could be more descriptive, so this updates each Accordion block description with some wording improvements.
Why?
Improves the readability of these block descriptions.
How?
Updates block descriptions.
Testing Instructions
There are no changes to functionality.
Screenshots or screencast