-
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
Editor: Restore starter content modal #69081
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +320 B (+0.02%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
<ToggleControl | ||
__nextHasNoMarginBottom | ||
checked={ showStartPatterns } | ||
label={ __( 'Show starter patterns' ) } | ||
help={ __( | ||
'Shows starter patterns when creating a new page.' | ||
) } | ||
onChange={ ( newValue ) => { | ||
setShowStartPatterns( newValue ); | ||
} } | ||
/> |
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 just duplicated the option from the Preferences modal. Compared to "Don't show me this modal", I like neutral labeling here.
Let me know if you prefer to change anything.
) } | ||
label={ __( 'Show starter patterns' ) } | ||
/> | ||
{ hasStarterPatterns && ( |
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.
There is a comment on the reverted PR about removing the condition and always showing the preference.
I think it makes sense, but I don't feel strongly about it.
https://github.com/WordPress/gutenberg/pull/66836/files#r1859203782
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.
Thanks for the reference. I was also considering the same.
It looks like the modal may be loading twice. I am not able to reproduce the same on 6.7.1 without Gutenberg. 6.7.1, this PR, Twenty Twenty-Four, Windows, Chrome: pattern-modal-25-02-07-0713.mp46.7.1, this PR, Twenty Twenty-Five, Windows, Firefox: pattern-modal-25-02-07-0732-firefox.mp4 |
If someone reduces the height of the browser, the footer (modal actions) is eventually below the |
Good catch. I think it's a conflict with the new default rendering mode. I had it disabled locally.
Do you mind sharing a screencast? I'm unable to reproduce it. |
What?
Closes #68736.
Reverts #66836.
PR restores the starter content modal for newly created pages, reverts the Zoom Out mode assembler, and adds a preferences toggle to the modal footer.
Todos
Why?
See: #68736 (comment)
Testing Instructions
Using TT4 or TT5
Testing Instructions for Keyboard
Same.
Screenshots or screencast