-
Notifications
You must be signed in to change notification settings - Fork 4.8k
The wp:pattern block #48458
Copy link
Copy link
Open
Labels
Needs Design FeedbackNeeds general design feedback.Needs general design feedback.[Block] PatternAffects the Patterns BlockAffects the Patterns Block[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsyncedA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issuesComprehensive, high level view of an area of focus often with multiple tracking issues
Metadata
Metadata
Assignees
Labels
Needs Design FeedbackNeeds general design feedback.Needs general design feedback.[Block] PatternAffects the Patterns BlockAffects the Patterns Block[Feature] PatternsA collection of blocks that can be synced (previously reusable blocks) or unsyncedA collection of blocks that can be synced (previously reusable blocks) or unsynced[Type] OverviewComprehensive, high level view of an area of focus often with multiple tracking issuesComprehensive, high level view of an area of focus often with multiple tracking issues
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
🎨 Needs design
Note
This is an integral part of the block API #41236
Pattern block tracking issue - #50159
We've so far treated patterns as a block instantiation feature but not a permanent object. This was a useful lens with which to introduce patterns and enabled many workflows (like copy and paste from the directory) without adding further edges to the block API. With time, we also introduced a utility block called
wp:patternto allow block theme authors to reference individually registered patterns dynamically, which has also helped with translations.There are a series of upcoming features around #39281 we want to unlock that now require us to look more seriously into making this block fully powered:
templateLockiscontentOnly#44581contentOnlyproperty further to establish a set of attributes (role == content) that the pattern is then injected with dynamically.theme.jsonchild objects to define a new set of style properties that only apply to the pattern contained within.All of these features can be better conceptualized with the help of such a block.
Task list: