Skip to content

Add support for allowedBlocks attribute in block variations #65851

@stevencamilleri-g2m

Description

@stevencamilleri-g2m

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] NavigationAffects the Navigation Block[Feature] Block VariationsBlock variations, including introducing new variations and variations as a feature[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions