Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Outline: Headings in the template can be selected even though they are not editable #69347

Open
3 of 6 tasks
carolinan opened this issue Feb 27, 2025 · 0 comments
Open
3 of 6 tasks
Assignees
Labels
[Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Type] Bug An existing feature does not function as intended

Comments

@carolinan
Copy link
Contributor

Description

In the block editor, the Document Outline shows heading blocks that are part of the template if the option "show template" is enabled.

Each item in the Document Outline is a link that contains the client ID of the block.
When the link that represents a block in the template is activated, the block in the canvas is selected, even though it is not editable. The selected block is also missing a visible focus style.

It may be confusing for users that the block is selectable from the Document Outline when it can not be edited or removed.

Follow up to #69073

Step-by-step reproduction instructions

Activate Twenty Twenty-Five.
Clear any changes you may have made to the single page template.
Open or create a new page.
Enable the option "Show template".
Open the Document Outline panel.
In the list of blocks in the Document Outline, activate a link that belongs to a heading in the template, and observe what happens.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@carolinan carolinan added the [Type] Bug An existing feature does not function as intended label Feb 27, 2025
@carolinan carolinan added the [Feature] Document Outline An option that outlines content based on a title and headings used in the post/page label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Document Outline An option that outlines content based on a title and headings used in the post/page [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants