-
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
Update the ConfirmDialog
that appears when applying a style revision over unsaved changes
#52972
Conversation
Size Change: +696 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
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.
Less, but better. Ship it.
@ramonjd I think some tests may need updating here but I'm not sure how to do it. When you have a second could you please give instructions? :) |
I've updated the failing test for global styles. Basically it was looking for the old copy. 👍🏻 |
Good improvement. |
What?
Simplify ConfirmDialog application in style revisions, and align with similar instances.
Why?
Consistency is good. A couple of principles are violated in this context:
How?
title
prop –ConfirmDialog
doesn't support it.confirmButtonText
now repeats original action.Testing Instructions
Alignment
Examples of similar confirmation modals in the site editor:
We might consider the "Are you sure..." prefix an emerging principle, in which case the body copy might read:
cc @WordPress/gutenberg-design for thoughts on that.