You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When nesting patterns with wp:pattern multiple instances of the same pattern are content linked. Also multiple formatting buttons are present depending on block (Align, Bold, Link, etc...).
The nested pattern should not be linked and a user should be able to edit the content independently.
This is especially useful for creating design systems to keep the pattern directory dry.
Step-by-step reproduction instructions
Install default WordPress
Create card.php in pattern directory
Createcard-group.php in pattern directory
Create new page
Add Card Group pattern
Try to edit Heading Block
Observe Heading is linked in all instances of "card", multiple formatting buttons are present.
@mike-henderson Thanks for reporting. This was previously reported and should be fixed in the Gutenberg plugin (in the upcoming version 15.9) - #50629. The fix will make its way across to WordPress 6.3 when that's released.
I'll close the issue, but if you can still reproduce as of Gutenberg 15.9 feel free to drop a comment here or make a new issue.
Description
When nesting patterns with
wp:pattern
multiple instances of the same pattern are content linked. Also multiple formatting buttons are present depending on block (Align, Bold, Link, etc...).The nested pattern should not be linked and a user should be able to edit the content independently.
This is especially useful for creating design systems to keep the pattern directory dry.
Step-by-step reproduction instructions
card.php
in pattern directorycard-group.php
in pattern directoryScreenshots, screen recording, code snippet
Pattern code for card and card-group to be placed in pattern directory.
https://gist.github.com/mike-henderson/86c37d63399ca94f000de22f6fcb4301
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: