-
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
Editor: Avoid remounts of DocumentBar
#62214
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: -27 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
This probably changes the header for posts without "title" support, I wonder how it looks now |
Maybe. Yet perhaps a question of greater importance is whether omitting the I noticed the document sidebar in posts without "title" support looks like this: Simply removing the Not that I think it’s ideal since there’s no distinguishing a post that can’t have title from one that lacks it. I’d like to try improving it but I think we’d need to modify |
PostTypeSupportCheck
in DocumentBar
DocumentBar
I don't mind that and you make a good point about the lack of H1 but would love a design check at least. @jasmussen @jameskoster |
@jasmussen The main question for me is whether showing "(no title)" as a title for post types that don't have titles is the way to go. It's a bit different than posts with an empty title. |
Yes, understood. I'm hearing that "(no title)" may still suggest it can hold a title? We could look at other bits of text, though I'd suggest they follow the same format, such "(title disabled)"? I don't love that, to be clear, and I think we should, across all of WordPress, change what these say so it's consistent. But we can flex a bit to get this PR shipping: it's easy, and seems safe, to change this verbiage again on the block editor side of things, so it seems like we should pick something and go with it. |
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.
Ok, than for me this is good to go. We can adapt the wording later if needed.
Thanks Joen and Riad for weighing in and reviewing ❤️ |
…dd/on-async-directives * 'trunk' of https://github.com/WordPress/gutenberg: (72 commits) Top toolbar: fix half a pixel artifacting of the bottom border. (#62225) Fix UI order for theme.json spacing sizes (#62199) Chore: Simplify a padding style on global styles. (#62291) Editor: Avoid remounts of `DocumentBar` (#62214) Add `default-spacing-sizes` and `default-font-sizes` options for classic themes (#62252) Editor: Cleanup styles and classnames (#62237) Scripts: Pin the @wordpress/scripts version to a version supported by WP 6.5 (#62234) Documentation: Better changelogs for the JSX transform upgrade (#62265) Chore: Simplify a padding style on dataviews. (#62276) MediaUpload: Remove dialog markup on close (#62168) Tabs: Prevent accidental overflow in indicator (#61979) Make edit site pagination buttons accessibly disabled. (#62267) Fix: Remove unused code from dataviews styles. (#62275) Re-enable React StrictMode (#61943) Inserter: Return the same items when the state and parameters don't change (#62263) Update instances of text-wrap: pretty to fall back to balance (#62233) Update: Slotfill documentation samples (links, code, and rephrase). (#62271) Try: Fix mover positioning. (#62226) [Mobile] - Image corrector - Check the path extension is a valid one (#62190) Update: Block styles documentation. ...
* Incorporate PostTypeSupportCheck in DocumentBar * Remove PostTypeSupportCheck from DocumentBar Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
* Incorporate PostTypeSupportCheck in DocumentBar * Remove PostTypeSupportCheck from DocumentBar Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
* Incorporate PostTypeSupportCheck in DocumentBar * Remove PostTypeSupportCheck from DocumentBar Co-authored-by: youknowriad <youknowriad@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org>
This was cherry-picked to the wp/6.6 branch. |
What?
Removes the
PostTypeSupportCheck
that is aroundDocumentBar
.Why?
Fixes #61875
More
PostTypeSupportCheck
causes its children to remount as it relies ongetPostType
which is asynchronous. The change in this PR avoids the remount that interferes with animation.Testing Instructions
Testing Instructions for Keyboard
Same as above, but I can add more detail if needed.
Screenshots or screencast
Currently
document-bar-remount-no-initial-animation.mp4
On this branch
document-bar-initial-animation.mp4