Blueprint: FR: MenuItems should allow tooltips

Created on 31 Mar 2017  路  5Comments  路  Source: palantir/blueprint

Especially if a menu item is disabled, a tooltip explanation would be very helpful for users.

Note: I can make this work currently by casting my tooltip with type any and setting it as the text prop.

P1 core feature request help wanted

Most helpful comment

yes i've seen this use case a lot lately so i'm going to re-open to track implementing next year.

All 5 comments

oh goodness we decided many moons ago against supporting tooltips on menus for several reasons:

  1. no other menu system does this. see OS X disabled menu items. they never have tooltips.
  2. menus are typically shown in Popovers, and tooltips are also Popovers. things can easily get weird when you nest Popovers, so we just avoid that composition when possible.

Makes sense. Seems like a reasonable decision.

However,
I noticed that iOS uses disabled menu items as headers for a menu, which is a different use case than mine. In my case, when someone is used to being able to do something, but cannot in this specific situation, they need some kind of explanation. To me, the cleanest way to present that information is with a hover.
ex:
screen shot 2017-03-31 at 3 25 21 pm

There also seems to be several other use cases with similar requests given responses in Slack.

Regardless, I'm happy with this being officially unsupported so long as it continues to be allowed in at least some way. For reference, here is how to get this working correctly at the moment.
tooltip-in-menu

Glad there's a workaround for it. We'll keep this open for discussion but it's very low priority for us at the moment

It's pretty important to be able to have tooltips on menu items.

The work around I'm using is to modify the display attribute on the popup target when it appears within a menu item:

.bp3-menu .bp3-popover-target {
    display: block;
}

yes i've seen this use case a lot lately so i'm going to re-open to track implementing next year.

Was this page helpful?
0 / 5 - 0 ratings