Pattern Overrides: Refactor block toolbar indicator #65058
Labels
[Block] Pattern
Affects the Patterns Block
[Type] Code Quality
Issues or PRs that relate to code quality
See #65054
Related #62514
Inner blocks of patterns currently use a custom filter to add a block icon to the toolbar. See this code:
gutenberg/packages/patterns/src/components/pattern-overrides-block-controls.js
Lines 150 to 153 in 559edae
It was implemented this way in #62514 to try to extract the pattern specific code from the block editor package. It also worked since the pattern block leveraged
contentOnly
mode where selected blocks didn't have a block icon. That is until #64694 added a block icon for contentOnly blocks.It's pretty clear now that the abstraction for pattern overrides needs to be changed, so that rather than adding a custom icon, the normal block icon is used instead. Here's the tasks:
The text was updated successfully, but these errors were encountered: