-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 editor: fix title margin #46698
Conversation
'edit-post-visual-editor__post-title-wrapper', | ||
{ | ||
'is-focus-mode': isFocusMode, | ||
} | ||
}, | ||
blockListLayoutClass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For TT3, these classes are enough to restore the padding, but some themes use block-editor-block-list__layout
or is-root-container
. We should just make sure we use the same classes as the root block list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we also render the post title as a proper block, but that's a bit of a challenge right now.
Size Change: +4 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What?
Restores margin and padding on the title in the iframed post editor. The problem is that the title wrapper should have to same classes as the root block list, so it gets the same padding. For the top margin, I passed it as an extra style to the iframe. Ideally we should be using a default body margin in the future.
Why?
How?
Testing Instructions
Open the post editor with TT3.
Testing Instructions for Keyboard
Screenshots or screencast