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

Add conditional tooltip support (md-visible for md-tooltip) #3657

Closed
pdavin-zz opened this issue Mar 17, 2017 · 3 comments
Closed

Add conditional tooltip support (md-visible for md-tooltip) #3657

pdavin-zz opened this issue Mar 17, 2017 · 3 comments

Comments

@pdavin-zz
Copy link

Bug, feature request, or proposal:

Can we have conditional tooltip support like in AngularJs? By conditional tooltip I mean the tooltip only displays if a certain condition is true. The element the tooltip is on should always be displayed - so the element the tooltip is attached to is not conditional. This is behavior offered by md-visible with Angular 1's md-tooltip I believe: https://material.angularjs.org/latest/api/directive/mdTooltip

What is the expected behavior?

https://material.angularjs.org/latest/api/directive/mdTooltip

What is the current behavior?

https://material.angular.io/components/component/tooltip

What is the use-case or motivation for changing an existing behavior?

Allows writing conditional tooltips, without duplicating DOM structure (creating two copies of the potentially-tooltip'd text or element).

@andrewseguin
Copy link
Contributor

Good news, this has been added recently and will be included in the next release

#3578

@pdavin-zz
Copy link
Author

Great! Sorry for the dupe - I did search open/closed issues before submitting and didn't find anything, but I think that's because I didn't expect it to be phrased as disabled.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants