carbon-design-system / carbon

A design system built by IBM
https://www.carbondesignsystem.com
Apache License 2.0
7.86k stars 1.82k forks source link

[Feature Request]: add classname to the menu of menu button #17722

Open divya-281 opened 1 month ago

divya-281 commented 1 month ago

The problem

The classname property of the menu button is only used apply styles to the menu button and not the menu. We want to be able to add a classname to the menu itself so that custom styles can be applied to it.

Adding a custom classname to this element:

Image

so that the style will be applied to the menu of the menu button Image

The solution

Add a prop menuClassName for menu button

Examples

No response

Application/PAL

No response

Business priority

None

Available extra resources

No response

Code of Conduct

github-actions[bot] commented 1 month ago

Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team.

If your proposal is accepted and the Carbon team has bandwidth they will take on the issue, or else request you or other volunteers from the community to work on this issue.

soumyaraju commented 1 month ago

@alisonjoseph i would like to work on this, can you assign this task to me. Thanks

sstrubberg commented 5 days ago

Thanks @divya-281 for submitting the request. Would you be open to explaining what you intend to do with this functionality with our designers in design office hours? Thanks!

divya-281 commented 5 days ago

Hi @sstrubberg Sure!

aagonzales commented 4 days ago

@sstrubberg @tay1orjones We met with @divya-281 at office hours and it turns out the change is not visual. They want to lower the value of the z-index on a menu item. How does that information effect this request now?