Villhellm / custom-sidebar

Custom Sidebar for Home Assistant
115 stars 23 forks source link

New items don't display their text in a tooltip when the sidebar is collapsed #12

Closed rccoleman closed 1 year ago

rccoleman commented 3 years ago

I'm just starting to play with this and it's working great for moving sidebar icons around and hiding ones that I don't want. I also love that I can add new items to the sidebar, but the name of the new time doesn't appear to display in a tooltip like I see for the default items when the sidebar is collapsed.

Examples:

Existing item with tooltip: image

New item with no tooltip: image

Expanded, showing the "Server Controls" text for the new item: image

Setting the name does change the text when the sidebar is open, but I just get no tooltip/popup when it's collapsed.

Villhellm commented 3 years ago

Yeah it turns out the tooltips are handled by TS event handlers that I don't have direct access to. It looks like in order to get tooltips working I would have to recreate them manually for the new items. Not impossible, but it will be a while before I get around to it

rccoleman commented 3 years ago

Thanks for the quick response. I thought it might just be something like adding alt-text, but I couldn't find anything meaningful in the inspector and figured that it was probably more complicated.