-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Accordion: Dont' show Add button in contentOnly mode #72704
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. |
|
@talldan @tellthemachines Can you share a little more context about why we decided to not ship this in 6.9? Given how it was working before 🤔 It would be such a massive win to have this present |
fabiankaegy
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.
If we really need to do it this works and is approved to merge.
But I'd love it to not be needed by allowing the insertion again 😬
|
Size Change: -3 B (0%) Total Size: 2.37 MB
ℹ️ View Unchanged
|
|
@fabiankaegy Thanks for the review! It would be ideal if we could enable the previous functionality, but for now, this button is not working, so let's merge this pull request. |
|
Flaky tests detected in 94698a3. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18841468296
|
Co-authored-by: t-hamano <[email protected]> Co-authored-by: fabiankaegy <[email protected]>
|
I just cherry-picked this PR to the wp/6.9 branch to get it included in the next release: 22d3371 |
What?
As I understand it, in the 6.9 release, blocks with a
contentRolesupport can no longer add new items in contentOnly mode.Accordingly, I'd like to hide the Add button when in contentOnly mode.
Why?
Because nothing happens when the button is pressed.
Testing Instructions
Insert blocks using the following HTML:
Screenshots or screencast