-
Notifications
You must be signed in to change notification settings - Fork 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
Full Site Editing: Minor Site Description Improvements #34141
Comments
#34096 fixes the typo. |
Thanks for the ping!
You're referring only to the tagline right? And by tagline, I mean it updates this field, correct? If it's not that, and it's meant to be a longer description, we can use this icon. If it's actually "tagline", let's use this short text icon:
The design principles for the block design suggest that when the block is unselected, the tagline should look exactly like it would on the frontend. So whatever theme styles present should bleed in here. When the block is selected, it's okay for additional UI to be present. I don't feel an actual input field is necessary — it isn't for the Paragraph block. About the save button — would it work to simply remove it? Or is an explicit save action necessary for this field to be updated? Ideally the contents would autosave as soon as you're done typing, or deselect the block. |
Indeed 👍 Fixed:
✅
Saving it means an API call every time, so it would get expensive quickly (Gutenberg has no concept of site options, so individual API calls are our only fetch/updating process at this point). |
Suggested fix for this in #34256 |
Gotcha. If you forget to hit the save button, will any changes you made still be saved when you publish or update the post/page? In absence of that, I would try and emulate the existing design pattern that exists for Reusable Blocks, so at least it's the same UI. |
No – I don't believe we have a mechanism for that, since Gutenberg itself is unaware of site options, or anything not saved within post content. Am I getting that right, @gwwar ? I think I've been assuming that that's an acceptable risk at this point; no-one will lose paragraphs of writing (or maybe I'm underestimating the user's perception of the flow?). |
@glendaviesnz is currently looking for options to allow for using the single save button for both post_content and outside sources like site options. This save button per block is temporary until we have that in place. (ie we won't ship this to customers) For what we have currently I don't believe any loss will occur. The unsaved warnings hook should fire as expected. |
To clarify, even if there was some loss, I don't think it would be the end of the world. Just thinking a bit ahead here, on how we can move in the best long term direction. All sounds good. |
Removes the box shadow from the site title and description block so they look like paragraph blocks when focused. Change suggested in feedback at #34141
With the decision to remove the save buttons and use temporary attribute updates instead the remaining point above should be covered by #34287 - this change will cause the editor content to be flagged as dirty so the normal prompt to save mechanisms should kick in. |
Have confirmed that #34350 resolves the above as the standard editor unsaved changes prompts now kick in. I am pretty sure everything in this issue is covered now so going to close. |
The text was updated successfully, but these errors were encountered: