Repository navigation
Closed
Labels
Needs Design FeedbackNeeds general design feedback.[Block] NavigationAffects the Navigation Block[Feature] Navigation MenusAny issue relating to Navigation Menus[Package] Edit Site/packages/edit-site[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended
Description
Description
There's at least two confirm dialog shown when deleting a navigation menu>
- From the navigation lock inspector > Settings > Advanced > Delete menu
- From the editor navigaiton panel > Design > Navigation > {menu name} > Actions ellipsis button > Delete
Screenshots:
These two confirm dialogs should look very similar but they have differences in terminology, heading name of the buttons.
Under the hood they use different components but that's fine as long as the design and user experiences are as consistent as possible.
- The first one is an inspector control that uses a Modal dialog.
- The second one is a ConfirmDialog.
At the very least they should:
- Etiher both have a heading or omit it (better: make it visually hidden).
- Either both incude the menu name in the heading or omit it.
- Either both have an X close button or omit it.
- Use the same casing for 'Navigation menu'.
- Use the same buttons height.
- Use the same name for the confirm action: genereally WordPress doesn't use 'Confirm', it rather uses the more specific action name, in this case it should be 'Delete'.
Ideally, they should use the same component.
Step-by-step reproduction instructions
- Go to the site editor.
- Select a Navigation block that does have a menu.
- In the Navigation block inspector, go to the Settings tab, scroll down to 'Advanced', expand it and click 'Delete menu'.
- Observe the confirmation dialog (actually a Modal component).
- Go to the navigation screen: Design > Navigation > {menu name} > Actions ellipsis button > Delete
- Observe the confirmation dialog (actually a ConfirmDialog component).
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
Metadata
Metadata
Assignees
Labels
Needs Design FeedbackNeeds general design feedback.[Block] NavigationAffects the Navigation Block[Feature] Navigation MenusAny issue relating to Navigation Menus[Package] Edit Site/packages/edit-site[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended


Activity
jasmussen commentedon Mar 19, 2024
Good issue. My suggestion would be to go with the second one, always, it's clearer and more actionable.
afercia commentedon Mar 19, 2024
There's already a PR #59825 that aligns the the to dialogs to the second one. A quick review would be appreciated.