gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

DropdownMenuV2: add GroupLabel subcomponent

Open ciampo opened this issue 5 months ago • 9 comments

What?

Part of #50459

Add GroupLabel sub-component to DropdownMenuV2

Why?

As discussed in https://github.com/WordPress/gutenberg/pull/62880#discussion_r1689884904, there is a need for group labels in DropdownMenuV2.

How?

  • Add a DropdownMenuV2.GroupLabel component based on Ariakit.MenuGroupLabel + <Text variant="muted" />
  • Swap custom implementation in Block Bindings UI with the first party group label

Testing Instructions

Check Storybook examples

Testing Instructions for Keyboard

Screenshots or screencast

Click to see screenshots:

Screenshot 2024-08-28 at 18 49 19 Screenshot 2024-08-28 at 18 49 46 Screenshot 2024-08-28 at 18 50 05

ciampo avatar Aug 27 '24 22:08 ciampo