Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MenuItemLink to receive TooltipPops #5360

Conversation

gstn-caruso
Copy link

Closes #5359

Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. However, we'd like the tooltip to be displayed by default as before (using the primaryText).

Can you please update the PR so that you can disable the tooltip by passing false a new tooltip prop? This prop should accept a label and defaults to the primaryText if undefined.

@fzaninotto
Copy link
Member

I don't think that disabling tooltip is a good feature. When the sidebar is closed, users need the tooltip.

So please limit your PR to allowing custom tooltip props, not removing the tooltip.

@gstn-caruso
Copy link
Author

gstn-caruso commented Oct 8, 2020

Sure, let me change that 👌.

Apart from that change I have a question @fzaninotto, is this element supposed to be used only in the sidebar? I tried to put it in a custom Appbar (that's why I wanted to remove the tooltip, or at least customize it)

@fzaninotto
Copy link
Member

Ys, it's only designed to be used in the Sidebar

@fzaninotto
Copy link
Member

Any updates on this one?

@gstn-caruso gstn-caruso deleted the MenuItemLink-customizable-tooltip branch December 23, 2020 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow MenuItemLink to have a customizable and optional tooltip
3 participants