Skip to content

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

@pdavin-zz

Description

@pdavin-zz

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions