-
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
Make the delete navigation menu confirm dialogs consistent #59825
Conversation
Size Change: +2.73 kB (0%) Total Size: 1.71 MB
ℹ️ View Unchanged
|
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. |
142209a
to
7cf8103
Compare
7cf8103
to
70cc05d
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.
Could use a quick code sanity check but this is a good motivation and fixes the issue. I wonder if the component readme could use a best practices section?
Good point, thqqnks. Also, the |
Probably worth a follow-up to stabilize it. |
Will create a new issue, thanks. |
…#59825) * Make the delete navigation menu confirm dialogs consistent. * Simplify and make consistent the deleted menu snackbar notices. * Add Best practices section to readme. Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: jasmussen <joen@git.wordpress.org> Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Fixes #59788
What?
Navigation menus can be deleted from the editor navigation panel and from the navigation block inspector. For consistency, the user flow should be as similar as possible however the confirmation dialogs are different.
The Snackboar notices after successful deletion should look similar as well.
Why?
Consistency is key. Making the two confirmation dialogs look the same and work the same helps usability and reduces cognitive load. Also, reduces code.
How?
Use a
ConfirmDialog
component instead of a custom Modal.Simplifies and makes consistent the Snackbar notices text.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before:
After: