Block variation title not displayed in block sidebar #43835
-
DescriptionI have a block with variations, and in the block inserter I see the correct title of the variation. But after adding a variation to the content, I get the block’s name instead of the variation name in the block sidebar. It works for the social icons core block, but I cannot get it working for the variation for my custom block. Step-by-step reproduction instructionsI created a small example plugin with a Screenshots, screen recording, code snippetNo response Environment infoWordPress 6.0.2 without Gutenberg and no other active plugins 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 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think it is due to the missing {
"variations": [
{
"name": "one-variation",
"title": "One variation",
"attributes": {
"isVariation": true
},
"isActive": ["isVariation"]
}
],
} The reference for variations includes the following statement:
|
Beta Was this translation helpful? Give feedback.
-
At the same time, I convert from issue to discussion because I think this is not a Gutenberg problem. |
Beta Was this translation helpful? Give feedback.
I think it is due to the missing
isActive
property.For your repository, the following code would work:
The reference for variations includes the following statement: