Issue displaying the proper name of the block variation vs default block name in the List View & Settings Panel #60797
Labels
[Feature] Block Variations
Block variations, including introducing new variations and variations as a feature
[Type] Question
Questions about the design or development of the editor.
Description
I am confused about how the name of the block variation is being applied.
Below I have two screenshots showing focusing on the default block "Heading" and then a block variation "Bullet Heading".
Here is my code for registering the block variation
NOTE: that I am also applying a block style to the Block Variation. Not sure if that has any affect.
But the ideal output would be that the default "Heading" block stayed named "Heading" and only the custom block variation when added would display in the List View and Settings panel with "Bullet Heading"
I set the
isActive: () => true,
based on the issue linked below but I think this has to be the wrong use ofisActive
based on the behavior I am seeing. But this was the only thing that was able to override the default name "Heading". WithoutisActive: () => true,
I was then only seeing the default name "Heading" and it wouldn't show the custom block Variation name in the List View & Settings panels.#51486
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WP Core 6.5.2
Custom WP Theme
Chrome Version 123.0.6312.123
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: