Deleting a group label from within a project is too similar to deleting a project label
Deleting a group label from a project isn't sufficiently different from deleting a project label. This makes it easy to miss that you are deleting a group label instead of a project label, especially because the labels 'Project label' and 'Group label' are not very different visually.
If you are used to clicking 'ok' when deleting project labels, a group label is gone before you have noticed.
Steps to reproduce
Go to the labels of a project within a group with labels. Click on the vertical dots after the group label and select 'Delete' in the dropdown menu.
What is the current bug behavior?
Deleting a project label and deleting a group label have the same UI, but deleting a group label has a lot more consequences outside of the project you are currently editing.
What is the expected correct behavior?
A different UI (other colors, other interaction) to make the deletion process from group labels from within a project different from deleting a group label. Or eg. disabling the deleting group labels from within a project, offering a jump to the group labels page instead.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Results of GitLab application Check
(If you can, link to the line of code that might be responsible for the problem) N/A