-
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
Simplify template reset language #60256
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: -25 B (0%) Total Size: 1.73 MB
ℹ️ View Unchanged
|
Flaky tests detected in 9a41e6c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8537462802
|
I like "Reset" more than "clear customizations" . Could maybe extend to "Reset to default" if needed. |
Not a strong opinion, but now feels like the moment to be bold, and potentially row back based on feedback if needed. We could add the 'to default' language to the confirmdialog?
|
😭 Thank you for working on this! This inconsistency has been frustrating and confusing, particularly for destructive actions. Here's some feedback for you: Considering adding a heading to the modal Should we add a "Be careful" style heading similar to this approach with removing query loop blocks? #58138 I'm not sold on this but, again, am thinking about consistency across the experience. Resetting styles has no modal Update the snackbar notice to say reset For resetting from Data Views for templates, I also think we should match the snackbar notice to say "reset" rather than "reverted": Consider making reset red Another minor note but should "reset" be red, similar to "trash" on Posts > All Posts: |
I believe maintaining consistency in the flow is most important. Minor differences in modal composition, such as the presence or absence of a title, seem acceptable to me. A "Be careful" warning seems excessive in this particular scenario. Additionally, a generic "Reset template" heading might be redundant, considering the accompanying copy directly below.
This PR focusses on resetting templates, we can follow-up to address styles 👍
Good catch! I'll push a fix.
I quite like using color to highlight 'danger zone' actions – generally those that cannot be undone. So in this case I would consider making the 'Reset' button in the modal red. That said, we may need to revisit how we apply destructive colors at the component level before committing to this change. Colors can have different meanings in different cultures, and red doesn't always represent 'Danger'. It's also a detail to apply holistically to all such flows. |
Sounds good across the board. Excited about this! |
Is the copy agreed upon for this one, so we can code review? |
Yep, I'd echo a simple "Reset" for the button to echo Jay's comments. |
021f490
to
4d687d8
Compare
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.
LGTM, thanks!
Thanks Nik. |
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'm not sure we need to be quite so explicit here as there is plenty of context, plus the confirmation modal (which is not present for styles). |
Co-authored-by: jameskoster <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: SaxonF <[email protected]> Co-authored-by: annezazu <[email protected]> Co-authored-by: jasmussen <[email protected]>
This has come up a couple of times – notably in #46859 – and with the long runway to 6.6 now feels like a potentially good time to try adjusting the language around clearing template customizations.
What?
Button
labels inConfirmDialog
s now read: "Reset"Why?
ConfirmDialog
should eliminate any potential confusion.Testing Instructions
Reset a theme template from any of the locations in which it is possible to do so:
Observe the updated language.