DropdownMenuItemV2: Add "destructive" state #61079
Labels
Needs Design Feedback
Needs general design feedback.
[Package] Components
/packages/components
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
In WordPress core and Gutenberg, a button typically appears red if its action is destructive.
Delete Template:
Move Post to Trash:
Move Post to Trash (Classic Editor):
On the other hand, in the UI already implemented with
DropdownMenuItemV2
components, these action buttons are not red.Delete template:
Move Post to Trash:
What is your proposed solution?
As far as I know, no option exists to make the
DropdownMenuItemV2
color red. I imagine that something like theisDestructive
prop of the button component could be used for these use cases.Below is a list of the states I would expect.
Default:
Hovered:
Focused:
The text was updated successfully, but these errors were encountered: