-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use rich text hook for post title #31569
Conversation
Size Change: -211 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
b993e21
to
065032c
Compare
20092a3
to
b6ffc61
Compare
d3f6edf
to
2bc4056
Compare
@@ -21,9 +21,6 @@ describe( 'TypeWriter', () => { | |||
// Create first block. | |||
await page.keyboard.press( 'Enter' ); | |||
|
|||
// Create second block. | |||
await page.keyboard.press( 'Enter' ); |
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.
The post title has become bigger, so we have to test with less blocks.
@@ -314,10 +317,8 @@ describe( 'Template Part', () => { | |||
); | |||
await chooseExistingButton.click(); | |||
const preview = await page.waitForSelector( | |||
'.block-editor-block-preview__content iframe' | |||
'[aria-label="Create New"]' |
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.
I saw that this test is unstable. This should stabilise it.
This was originally used to provide a friendlier note when a note was published rather than (no title) is live. A change in Gutenberg 11.4.0 caused this to not work anymore and instead crash the editor when the note was saved. See WordPress/gutenberg@647547a from WordPress/gutenberg#31569
Description
Fixes #6897.
Makes the post title a real preview of the from end by using the right tag (h1).
Note that the post title will now have a different size depending on the theme. For 2021, this is a bit larger than it used to be, but this is normal, it's the same size as the front-end.
Ideally we should use the post title block here, but this is a good substitute for now.
Also removes excessive rerenders of the auto resizing text area component.
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).