Blocks: Add support for the ancestor
and parent
settings for the block variation
#48424
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
Needs Dev
Ready for, and needs developer efforts
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Part of #41236.
It would be very interesting to have support for the
ancestor
setting for the block variations.In WooCommerce, we use a variation of the
Query Loop
block calledProducts
. To be consistent with the naming and offer a good UI/UX, we created a variation of thePost Title
calledProduct Title
.We can't limit the block visibility without the' ancestor' setting. Users can add the
Product Title
to a post/page block. Being a variation of thePost Title
, the behavior is the same as this latter, but for the user could be weird.What is your proposed solution?
Having the possibility to change the visibility of the variation via the
ancestor
setting fixes this use case.The text was updated successfully, but these errors were encountered: