Unable to Use isActive with Core/Group Block Variation #60794
Labels
[Block] Group
Affects the Group Block (and row, stack and grid variants)
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
[Type] Enhancement
A suggestion for improvement.
Issue
I've created a block variation for the core group block and would like to use the "isActive" property so the editor will recognize it. However, it appears that all of the attributes that would trigger isActive -- primarily the layout attributes -- are used by the core group block's own variations. Thus, "isActive" isn't triggered for my block as it has already been assigned to a core group variation earlier in the stack. I would like my block variation to be able to use the default group block layout attributes.
Proposed Solution
It would be great if there was another, more flexible attribute which could be used to 1) trigger "isActive" on group blocks and 2) filter the return value for my block variation. In my case I believe using the "className" string attribute would work well.
[Note: I'm not really a Github user and is my first feature post here -- apologies if I've screwed this up.]
The text was updated successfully, but these errors were encountered: