-
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
Sidebar Navigation: Refactor delete modal with ConfirmDialog
component
#51867
Conversation
ConfirmDialog
component
Size Change: -21 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
ConfirmDialog
componentConfirmDialog
component
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.
Good context share, lots of red, great visuals in the PR, excellent contribution. Could use a code sanity check, but this feels like a nice step forward. Thank you!
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.
Looks good. Thank you for this.
Related to: #50880
What?
This PR refactors the modal for removing menus from the sidebar navigation menu with a ConfirmDialog component to improve UI consistency.
Why?
If only yes or no is required in the modal, I feel that the
ConfirmDialog
component is appropriate. The following are similar modals using theConfirmDialog
component.Delete pattern
Unpublish post
Delete page
How?
Simply refactored using existing logic and text. I was not sure which text to use, OK or Delete, but I used the same Delete label as before.
Testing Instructions
Confirm that the navigation deletion works correctly as before.