material icon indicating copy to clipboard operation
material copied to clipboard

Firefox : md-tooltip don't display on a md-list-item

Open mpicciolli opened this issue 10 years ago • 11 comments

Hello,

On Firefox, md-icon tooltip don't display when it's placed on a md-list-item element

Codepen : http://codepen.io/mpicciolli/pen/QNBMqg

angularjs/1.4.8 angular-material/v1.0.5

Any idea why this doesn't work?

mpicciolli avatar Apr 22 '16 13:04 mpicciolli

Ditto on chrome +1

scriptsure avatar May 31 '16 18:05 scriptsure

Tracking with #8946.

Fer22f commented:

However, 1.1.0 fixes the href/ng-click disparity, and breaks md-tooltip. Seeing this is basically default behavior, it might make this issue a "feature request" instead. I found #8172, but it lacks information and is now stale.

devversion avatar Jul 04 '16 16:07 devversion

Will it not work inside md-list-item?

ashishpatel02 avatar Jul 26 '16 07:07 ashishpatel02

+1 on @ashishpatel02

Is it possible to have this inside md-list-item?

cmacdonnacha avatar Aug 09 '16 16:08 cmacdonnacha

It Won't But i have found one workaround which can help others.

If you inspect it then you will be surprised with button inside md-list so what i have done, i have added button manually inside md-list-item without using md-list tag and added md-tooltip underneath of that. @cmacdonnacha @DevVersion

check below :

<md-list-item class="usercontentpad" ng-repeat="repeat with data">
    <button class="md-no-style md-button md-default-theme" ng-transclude="">
        <div class="md-list-item-inner ng-binding ng-scope">
            {{ item to display }}
        </div><div class="md-ripple-container" style=""></div>
    </button>
    <md-tooltip md-direction="right" class="large" style="position: absolute;">
            {{tooltip to display}}
    </md-tooltip>
</md-list-item>

ashishpatel02 avatar Aug 10 '16 04:08 ashishpatel02

Thanks for that @ashishpatel02 . Is there anyway way to have it on the list item itself instead of the button?

cmacdonnacha avatar Aug 10 '16 13:08 cmacdonnacha

you can replace button with anything but i'm not sure it will work or not, you can try this with codepen first for the small demo @cmacdonnacha

ashishpatel02 avatar Aug 10 '16 13:08 ashishpatel02

@ashishpatel02 Your solution doesn't work. Do you have a codepen ?

mpicciolli avatar Aug 18 '16 09:08 mpicciolli

@mpicciolli here it is => http://codepen.io/ashuslove/pen/bZypRE?editors=101#anon-login

ashishpatel02 avatar Aug 22 '16 09:08 ashishpatel02

agreed this would be nice to have.

skortchmark9 avatar Mar 23 '17 00:03 skortchmark9

This seems related to PR https://github.com/angular/material/pull/11539. Please let me know if this is still an issue after that is merged (targeting 1.1.12) by opening a new issue with a CodePen reproduction.

Splaktar avatar Dec 09 '18 12:12 Splaktar