Skip to content

Make the delete menu confirm dialogs consistent #59788

Closed

Description

@afercia

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:

delete menu from inspector

delete menu from navigation screen

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.

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

Activity

  1. added
    [Type] Bug
    Needs Design Feedback
    [Block] Navigation
    [Package] Edit Site
    [Feature] Navigation Menus
    on Mar 12, 2024
  2. self-assigned this
    on Mar 13, 2024
  3. added
    [Status] In Progress
    on Mar 13, 2024
  4. jasmussen commented on Mar 19, 2024

    @jasmussen
    Contributor

    Good issue. My suggestion would be to go with the second one, always, it's clearer and more actionable.

  5. afercia commented on Mar 19, 2024

    @afercia
    ContributorAuthor

    There's already a PR #59825 that aligns the the to dialogs to the second one. A quick review would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Needs Design Feedback[Block] Navigation[Feature] Navigation Menus[Package] Edit Site[Status] In Progress[Type] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions