ui-kit icon indicating copy to clipboard operation
ui-kit copied to clipboard

DropdownMenu: Allow choice for data-* props to be routed to triggerElement or DropdownMenu container

Open jocelyn-dunkley opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. We're working on the new Spaces project and we're using the DropdownMenu component. The marketing people will want to track the popularity of various components in FullStory so we want to be able to use data selectors about who clicks on the triggerElement and the DropdownMenu container itself. Any data attributes are not passed on anywhere in the component.

Describe the solution you'd like Please do one of the following:

  1. pass on all non-specified props to the component like {...rest}
  2. Add specific data attributes to the triggerElement and the DropdownMenu, respectively.

P.S. Can you do this for all new components from now on?

jocelyn-dunkley avatar Jun 26 '24 14:06 jocelyn-dunkley

Hello @jocelyn-dunkley We will keep this in mind and also, update you regarding the data-attribute for the DropdownMenu component. Thanks!

ddouglasz avatar Jun 26 '24 15:06 ddouglasz

@ddouglasz Hi do you have a timeline on this?

jocelyn-dunkley avatar Jul 10 '24 08:07 jocelyn-dunkley

Hey @jocelyn-dunkley Going by what we have as priority right now, We should get to this by next week.

Thank you.

ddouglasz avatar Jul 11 '24 12:07 ddouglasz