Template locked: Block style variation options show in the block sidebar #69238
Labels
[Feature] Document Outline
An option that outlines content based on a title and headings used in the post/page
[Feature] Templates API
Related to API powering block template functionality in the Site Editor
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When you edit a page in the block editor and enable "Show template", some template blocks can be seen and selected from the List View. Because they are in the template, they have no settings or styling options.
This is working as intended.
But when you open the Document Outline, it lists heading blocks that are in the template. When you click on the item in the Document Outline, the block is selected.
When the block is selected, it shows the block style variations. The style can be selected and previewed, but it can not be saved.
I don't think the style variations are meant to be visible in the block settings sidebar: I make this conclusion since all other options are hidden.
Step-by-step reproduction instructions
Activate Gutenberg trunk.
Activate Twenty Twenty-Five.
Open the page template in the Site Editor.
Add a heading block anywhere on the template, save.
Create a new page.
With "Show template" enabled, open the Document Outline.
Confirm that the heading that you added to the template is listed: Click on it.
Confirm that the style variations for the heading block are showing, and that you can apply it but not save it.
Screenshots, screen recording, code snippet
In the screenshot I am editing a page, I have selected the heading by clicking on it in the Document Outline, and then selected the annotation style.
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
This can possibly be solved in #69073 by removing the block selection from the document outline. I opened a separate issue for it because I think it should be solved no matter if 69073 is included in 6.8 or not.
I have not looked into how the other styling options are hidden: I suspect that block style variations was perhaps forgotten when the other options were hidden.
The text was updated successfully, but these errors were encountered: