-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Accordion: Passthrough 'openByDefault' value via context #74191
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: Passthrough 'openByDefault' value via context #74191
Conversation
|
Size Change: +3 B (0%) Total Size: 2.58 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 7d76a71. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/20480404826
|
ntsekouras
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, thanks! It's a much better approach. Left a small comment and fixtures should be regenerated.
|
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. |
What?
PR updates the Accordion block to passdown and consume
openByDefaultvalue via block context, which is more suitable for this use case.Why?
openByDefaultvalue in the editor; this attribute isn't used when the content is serialized.P.S. I have some ideas to improve how the
isSelectedstate is handled, will create a separate PR for it.Testing Instructions
Testing Instructions for Keyboard
Same.
Screenshots or screencast