-
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
ConfirmDialog: Replace 'OK' with more descriptive label #60360
Comments
Worth also noting that the 'Best practices` section added to the component readme in #59825 now recommends to:
|
The ConfirmDialog used for switching to template editing is a special case. To me, its usage isn't ideal in the first place. A ConfirmDialog should be used 'only for short confirmation messages where a cancel and confirm actions are provided.'.
Instead, ideally the copy should ask a question or, at least, the action to confirm should me more clear. Screenshot: Update:
Originally, the copy of this dialog in #51366 was In #60016 it was changed to |
What about |
The copy
|
Thanks for flagging. Works for me. I think we could drop the last part so that it is:
|
Thanks for the feedback, A little verbose but it works for me. |
Description
See also #60027
The
ConfirmDialog
component was introduced in #34153 because of two main purposes:Quoting from the related issues, see #16583 and #33937
window.confirm()
isn't an ideal experience as we're unable to customise the OK button to have a more descriptive label.Regarding the first point, it appears some instances of the
ConfirmDialog
just use the defaultOK
button text, thus defeating one of the purposes it was introduced for.I'd tend to think re-enforcing the in-progress action by using a more meaningul button text would make the user experience better. Also, there's some inconsistency throughout the UI. I'd tend to think all
ConfirmDialog
should either use 'OK' oar a more specific text.Some exampke screenshots:
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: