iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
8 stars 2 forks source link

ToolbarItemDef tooltip not showing when in a groupItem #607

Open a-gagnon opened 7 months ago

a-gagnon commented 7 months ago

Describe the bug We have a couple of UI providers that create group items with a few ToolbarItemDef inside. Whenever the ToolbarItem is directly on the horizontal or vertical toolbar, we can mouse over to get the localized tooltip of the tool, but whenever those are under a group item, the tooltip never shows up. We're using ToolbarItemUtilities.createGroupItem and ToolbarHelper.constructChildToolbarItems.

For what it's worth, manually assigning title="FOO" in any of those child ToolbarItem works just fine.

To Reproduce Steps to reproduce the behavior: Write a UI provider that adds a ToolbarItem directly in the horizontal/vertical toolbar, and have it return a group item with the same ToolbarItem as child.

Expected behavior We should get tooltip whether we're in a group or not.

Desktop (please complete the applicable information):

raplemie commented 7 months ago

Thanks, we'll look into this!