Add support for allowedBlocks attribute in block variations #65851
Labels
[Block] Navigation
Affects the Navigation Block
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Currently there is no way of determining the allowed block types for a variation of a parent block (i.e. limiting the allowed blocks for a Navigation block variation to only support
core/navigation-link
).What is your proposed solution?
Add support via an allowedBlocks attribute (like the group block has) to allow developers to define the supported block types on each instance, making it also changeable per instance. This would be more reliable, as the allowed block types would be stored throughout a block variation instance’s life.
The text was updated successfully, but these errors were encountered: