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

Post Title receiving Post Content layout styles in the post editor. #48579

Closed
tellthemachines opened this issue Feb 28, 2023 · 2 comments · Fixed by #48663
Closed

Post Title receiving Post Content layout styles in the post editor. #48579

tellthemachines opened this issue Feb 28, 2023 · 2 comments · Fixed by #48663
Assignees
Labels
[Feature] Layout Layout block support, its UI controls, and style output. [Package] Edit Post /packages/edit-post [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release

Comments

@tellthemachines
Copy link
Contributor

Description

If the Post Content block in a post template has custom layout settings, they will also be applied to the title in the post editor. This seems to be a result of #46698 which adds the post content classes to the title area.

Step-by-step reproduction instructions

  1. Edit the Post Content block in the post template to e.g. justify content right, and give it a narrow content width;
  2. Save and reload the post page;
  3. Verify that the post title is now also aligned to the right and correspondingly narrow.

Screenshots, screen recording, code snippet

Screenshot 2023-02-28 at 5 02 12 pm

Environment info

Gutenberg latest trunk and also WP 6.2 Beta 3. Not reproducible on WP 6.1.1, so looks like a regression from the latest release.

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

@tellthemachines tellthemachines added [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release [Package] Edit Post /packages/edit-post [Feature] Layout Layout block support, its UI controls, and style output. labels Feb 28, 2023
@ndiego
Copy link
Member

ndiego commented Mar 1, 2023

I don't love it, but was this intentional?

I know there have been some experiments, but it would be great in the future if the title was not part of the post content at all. 😅

@annezazu
Copy link
Contributor

annezazu commented Mar 1, 2023

Adding this to to do since it seems like this was a regression, unless we hear that this was done intentionally for some reason!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Layout Layout block support, its UI controls, and style output. [Package] Edit Post /packages/edit-post [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants